From 0100da548039fae37f84c77cb4555646b5f3d8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 30 May 2018 19:02:52 +0200 Subject: [PATCH] Make comicdownloadinfocontroller_v2 provide all the needed information. --- .../server/controllers/v2/comicdownloadinfocontroller_v2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/server/controllers/v2/comicdownloadinfocontroller_v2.cpp b/YACReaderLibrary/server/controllers/v2/comicdownloadinfocontroller_v2.cpp index 420b9cf0..60981e3e 100644 --- a/YACReaderLibrary/server/controllers/v2/comicdownloadinfocontroller_v2.cpp +++ b/YACReaderLibrary/server/controllers/v2/comicdownloadinfocontroller_v2.cpp @@ -23,5 +23,6 @@ void ComicDownloadInfoControllerV2::service(HttpRequest& request, HttpResponse& //TODO: check if the comic wasn't found; response.write(QString("fileName:%1\r\n").arg(comic.getFileName()).toUtf8()); response.write(QString("fileSize:%1\r\n").arg(comic.getFileSize()).toUtf8()); - response.write(QString("hash:%1\r\n").arg(comic.info.hash).toUtf8(),true); + response.write(QString("libraryId:%1\r\n").arg(libraryId).toUtf8()); + response.write(comic.toTXT().toUtf8(),true); }