Fixed issue that caused downloads to be displayed as complete, when they were really not

This commit is contained in:
Leonetienne 2021-03-03 20:17:48 +01:00
parent 01d7f2fcda
commit c34b2f80bf
2 changed files with 7 additions and 2 deletions

View File

@ -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;
}
}
}
}

View File

@ -1,2 +1,2 @@
#pragma once
#define TUBIO_SERVER_VERSION (0.52)
#define TUBIO_SERVER_VERSION (0.53)