diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-14 14:25:04 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-14 14:25:04 +0600 |
commit | d800609c62703e4e6edd2891a8432306462e4db3 (patch) | |
tree | b38bc875bcaeac5a82d7e622b5188112cecd4bb6 /youtube_dl/downloader/http.py | |
parent | c78c9cd10dfbb4fc3fd49df4f9c98e9c94c9aae9 (diff) |
[refactor] Do not specify redundant None as second argument in dict.get()
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r-- | youtube_dl/downloader/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 56840e026..7089983ce 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -140,8 +140,8 @@ class HttpFD(FileDownloader): if data_len is not None: data_len = int(data_len) + resume_len - min_data_len = self.params.get("min_filesize", None) - max_data_len = self.params.get("max_filesize", None) + min_data_len = self.params.get("min_filesize") + max_data_len = self.params.get("max_filesize") if min_data_len is not None and data_len < min_data_len: self.to_screen('\r[download] File is smaller than min-filesize (%s bytes < %s bytes). Aborting.' % (data_len, min_data_len)) return False |