1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-02-17 01:17:54 +01:00
youtube-dl/youtube_dl
Glenn Slayden eccee557b1
Fix for '--max-downloads' to stop immediately when reaching the limit.
Currently, the specifying a limit with `--max-downloads` doesn't cause **youtube-dl** to stop right after it has successfully downloaded that number of files.

Instead, it keeps iterating the playlist until another candidate file is found to download, only to then discovers that the limit was previously met. This unnecessary activity can actually take quite a while when a large playlist is already mostly downloaded.

This fix adds an additional tail-check on the `_num_downloads` condition so that it terminates immediately after finishing the last eligible file.
2020-09-20 03:45:10 -07:00
..
downloader [downloader/hls] Fix incorrect end byte in Range HTTP header for media segments with EXT-X-BYTERANGE (#24512) (closes #14748) 2020-09-18 05:26:56 +07:00
extractor [redtube] Extend _VALID_URL (#26506) 2020-09-20 11:39:42 +07:00
postprocessor [postprocessor/embedthumbnail] Fix issues (closes #25717) 2020-09-14 03:28:31 +07:00
__init__.py Output batch filename when it could not be read (#21915) 2019-08-01 03:54:39 +07:00
__main__.py
aes.py Switch codebase to use compat_b64decode 2018-01-23 22:23:12 +07:00
cache.py Use expand_path where appropriate (closes #12556) 2017-03-26 02:31:16 +07:00
compat.py [compat] Introduce compat_cookiejar_Cookie 2020-05-05 05:54:10 +07:00
jsinterp.py [jsinterp] Fix typo and cleanup regexes (closes #13134) 2017-05-18 22:57:38 +07:00
options.py [options] Clarify doc on --exec command (closes #19087) (#24883) 2020-04-24 02:31:38 +07:00
socks.py [socks] Report errors elegantly when credentails are required but missing 2017-04-22 21:48:41 +08:00
swfinterp.py Update coding style after pycodestyle 2.1.0 2016-11-17 19:45:42 +08:00
update.py [update] Fix updating via symlinks (closes #23991) 2020-02-08 19:46:58 +07:00
utils.py [utils] Recognize wav mimetype (closes #26463) 2020-09-06 11:19:53 +07:00
version.py release 2020.09.20 2020-09-20 12:30:45 +07:00
YoutubeDL.py Fix for '--max-downloads' to stop immediately when reaching the limit. 2020-09-20 03:45:10 -07:00