From e482c3706cc8e70f51eca8ef763dcf54a4a27ab5 Mon Sep 17 00:00:00 2001 From: Leon Etienne Date: Mon, 18 Apr 2022 14:43:07 +0200 Subject: [PATCH] Now writing tubio id to logs when queueing --- Tubio/RestQueryHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tubio/RestQueryHandler.cpp b/Tubio/RestQueryHandler.cpp index 65b7cda..e0de386 100644 --- a/Tubio/RestQueryHandler.cpp +++ b/Tubio/RestQueryHandler.cpp @@ -115,11 +115,11 @@ bool RestQueryHandler::QueueDownload(const JsonBlock& request, JsonBlock& respon return false; } - log->cout << "Queued video \"" << videoUrl << "\"..."; - log->Flush(); - std::string tubId = DownloadManager::QueueDownload(videoUrl, mode, quality); + log->cout << "Queued video \"" << videoUrl << "\" with id \"" << tubId << "\"..."; + log->Flush(); + responseCode = HTTP_STATUS_CODE::OK; responseBody.CloneFrom(RestResponseTemplates::GetByCode(HTTP_STATUS_CODE::OK)); responseBody.Set("message") = "Download queued!";