From c34b2f80bfc61c5c44328d59c71e7590b99b87fc Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Wed, 3 Mar 2021 20:17:48 +0100 Subject: [PATCH] Fixed issue that caused downloads to be displayed as complete, when they were really not --- Tubio/DownloadManager.cpp | 7 ++++++- Tubio/Version.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Tubio/DownloadManager.cpp b/Tubio/DownloadManager.cpp index 610e413..1c2c108 100644 --- a/Tubio/DownloadManager.cpp +++ b/Tubio/DownloadManager.cpp @@ -236,9 +236,14 @@ void DownloadManager::UpdateDownloadProgressPercentages() int newPercentage = std::stoi(ss.str()); unfinishedCache[i].download_progress = newPercentage; - if (newPercentage == 100) unfinishedCache[i].status = DOWNLOAD_STATUS::FINISHED; + //if (newPercentage == 100) unfinishedCache[i].status = DOWNLOAD_STATUS::FINISHED; } } + else if ((lbuf.substr(0, 21) == "Deleting original file") || + (lbuf.substr(0, 24) == "[ffmpeg] Not converting")) + { + unfinishedCache[i].status = DOWNLOAD_STATUS::FINISHED; + } } } } diff --git a/Tubio/Version.h b/Tubio/Version.h index 51a0b22..6ea6aa7 100644 --- a/Tubio/Version.h +++ b/Tubio/Version.h @@ -1,2 +1,2 @@ #pragma once -#define TUBIO_SERVER_VERSION (0.52) +#define TUBIO_SERVER_VERSION (0.53)