aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/downloader/common.py
diff options
context:
space:
mode:
authornixxo <nixxo@protonmail.com>2021-01-07 16:49:07 +0100
committerGitHub <noreply@github.com>2021-01-07 16:49:07 +0100
commit1c3a61baae8f9aea1fa5610317e9bfd63a259d2d (patch)
tree27b312678d5eb1bed87ebb0af9f453fbfa94a424 /youtube_dlc/downloader/common.py
parent727006d9515441ae44dd034955fd220d5afed9a6 (diff)
parent9d88274ca2e5248481204e753b458e3a4eeac60e (diff)
downloadhypervideo-pre-1c3a61baae8f9aea1fa5610317e9bfd63a259d2d.tar.lz
hypervideo-pre-1c3a61baae8f9aea1fa5610317e9bfd63a259d2d.tar.xz
hypervideo-pre-1c3a61baae8f9aea1fa5610317e9bfd63a259d2d.zip
Merge branch 'master' into akamai-fix
Diffstat (limited to 'youtube_dlc/downloader/common.py')
-rw-r--r--youtube_dlc/downloader/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/downloader/common.py b/youtube_dlc/downloader/common.py
index 7d303be1c..a0acb6556 100644
--- a/youtube_dlc/downloader/common.py
+++ b/youtube_dlc/downloader/common.py
@@ -351,7 +351,7 @@ class FileDownloader(object):
'status': 'finished',
'total_bytes': os.path.getsize(encodeFilename(filename)),
})
- return True
+ return True, False
if subtitle is False:
min_sleep_interval = self.params.get('sleep_interval')
@@ -372,7 +372,7 @@ class FileDownloader(object):
'[download] Sleeping %s seconds...' % (
sleep_interval_sub))
time.sleep(sleep_interval_sub)
- return self.real_download(filename, info_dict)
+ return self.real_download(filename, info_dict), True
def real_download(self, filename, info_dict):
"""Real download process. Redefine in subclasses."""