aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-17 13:35:04 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-17 14:20:40 +0530
commit7e9a61258543f64113e779f2f82fe7a29827489d (patch)
treeb78a67b7b49829ecc1249ca2aaaf5bbaf4d66373 /yt_dlp/options.py
parent0df111a371f191a2513e681ec30fc8563545c983 (diff)
downloadhypervideo-pre-7e9a61258543f64113e779f2f82fe7a29827489d.tar.lz
hypervideo-pre-7e9a61258543f64113e779f2f82fe7a29827489d.tar.xz
hypervideo-pre-7e9a61258543f64113e779f2f82fe7a29827489d.zip
Add option `--lazy-playlist` to process entries as they are received
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index bc646ab4a..900b5c8b1 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -888,7 +888,7 @@ def create_parser():
help=optparse.SUPPRESS_HELP)
downloader.add_option(
'--playlist-reverse',
- action='store_true',
+ action='store_true', dest='playlist_reverse',
help=optparse.SUPPRESS_HELP)
downloader.add_option(
'--no-playlist-reverse',
@@ -896,9 +896,17 @@ def create_parser():
help=optparse.SUPPRESS_HELP)
downloader.add_option(
'--playlist-random',
- action='store_true',
+ action='store_true', dest='playlist_random',
help='Download playlist videos in random order')
downloader.add_option(
+ '--lazy-playlist',
+ action='store_true', dest='lazy_playlist',
+ help='Process entries in the playlist as they are received. This disables n_entries, --playlist-random and --playlist-reverse')
+ downloader.add_option(
+ '--no-lazy-playlist',
+ action='store_false', dest='lazy_playlist',
+ help='Process videos in the playlist only after the entire playlist is parsed (default)')
+ downloader.add_option(
'--xattr-set-filesize',
dest='xattr_set_filesize', action='store_true',
help='Set file xattribute ytdl.filesize with expected file size')