aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/common.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-04-19 18:34:25 +0100
committerRemita Amine <remitamine@gmail.com>2017-04-19 18:53:15 +0100
commitea0c2f219c219de8f59f1ae82e106cec5911c56c (patch)
tree60cbd2157a86c490a7055def050dffdd3155d285 /youtube_dl/downloader/common.py
parent481ef51e2345b1b34b16148eb6e5e58e9fb45cfb (diff)
[downloader/fragment] use a general file to store fragment download context
Diffstat (limited to 'youtube_dl/downloader/common.py')
-rw-r--r--youtube_dl/downloader/common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py
index fdb77b620..5d6621147 100644
--- a/youtube_dl/downloader/common.py
+++ b/youtube_dl/downloader/common.py
@@ -187,6 +187,9 @@ class FileDownloader(object):
return filename[:-len('.part')]
return filename
+ def ytdl_filename(self, filename):
+ return filename + '.ytdl'
+
def try_rename(self, old_filename, new_filename):
try:
if old_filename == new_filename: