Browse Source

Count 'Warning' return code as success

Use the same behaviour as the DownloadItem object and
count the 'Warning' YoutubeDLDownloader return code as
success
doc-issue-template
MrS0m30n3 8 years ago
parent
commit
932a968e1b
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl_gui/downloadmanager.py

3
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

Loading…
Cancel
Save