From ea0c2f219c219de8f59f1ae82e106cec5911c56c Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Wed, 19 Apr 2017 18:34:25 +0100 Subject: [downloader/fragment] use a general file to store fragment download context --- youtube_dl/downloader/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'youtube_dl/downloader/common.py') 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: -- cgit v1.2.3