From 932a968e1b67c2b84425b92780d930d8c106e824 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 20 Dec 2016 19:13:23 +0200 Subject: [PATCH] Count 'Warning' return code as success Use the same behaviour as the DownloadItem object and count the 'Warning' YoutubeDLDownloader return code as success --- youtube_dl_gui/downloadmanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/downloadmanager.py b/youtube_dl_gui/downloadmanager.py index 33fbf88..af3d82b 100644 --- a/youtube_dl_gui/downloadmanager.py +++ b/youtube_dl_gui/downloadmanager.py @@ -568,7 +568,8 @@ class Worker(Thread): ret_code = self._downloader.download(self._data['url'], self._options) if (ret_code == YoutubeDLDownloader.OK or - ret_code == YoutubeDLDownloader.ALREADY): + ret_code == YoutubeDLDownloader.ALREADY or + ret_code == YoutubeDLDownloader.WARNING): self._successful += 1 # Ask GUI for name updates