Now writing tubio id to logs when queueing
This commit is contained in:
1 parent
b6863ac2e7
commit
e482c3706c
1 file changed
+3
-3
@@ -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!";
|
||||
|
||||
Reference in new issue
Block a user