]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Default to continuedl=True
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 28 Mar 2015 07:11:32 +0000 (08:11 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 28 Mar 2015 07:11:39 +0000 (08:11 +0100)
We already do this in the CLI interface, so it should be just fine.

youtube_dl/downloader/common.py
youtube_dl/downloader/http.py
youtube_dl/downloader/rtmp.py

index ca14d64bc192cd8d783ffe604198ec2b064e2cc9..a0fc5ead06a4e8adba7886d2a4087d28ca9cdbcb 100644 (file)
@@ -318,7 +318,7 @@ class FileDownloader(object):
         )
 
         continuedl_and_exists = (
-            self.params.get('continuedl', False) and
+            self.params.get('continuedl', True) and
             os.path.isfile(encodeFilename(filename)) and
             not self.params.get('nopart', False)
         )
index 4047d7167478b34c9cacc79dcbbfeee1bb31d317..d136bebd1fe45761312bd90c31a95ddaf1754271 100644 (file)
@@ -49,7 +49,7 @@ class HttpFD(FileDownloader):
 
         open_mode = 'wb'
         if resume_len != 0:
-            if self.params.get('continuedl', False):
+            if self.params.get('continuedl', True):
                 self.report_resuming_byte(resume_len)
                 request.add_header('Range', 'bytes=%d-' % resume_len)
                 open_mode = 'ab'
index 89e98ae61e128c80eab5b0e04109b1baa2ecff7e..ddf5724ae6f05259194c67473bfd212ddeb896ff 100644 (file)
@@ -105,7 +105,7 @@ class RtmpFD(FileDownloader):
         protocol = info_dict.get('rtmp_protocol', None)
         real_time = info_dict.get('rtmp_real_time', False)
         no_resume = info_dict.get('no_resume', False)
-        continue_dl = info_dict.get('continuedl', False)
+        continue_dl = info_dict.get('continuedl', True)
 
         self.report_destination(filename)
         tmpfilename = self.temp_name(filename)