diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-10-24 14:48:12 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-10-24 14:48:12 +0200 |
commit | 057a5206cc602f2b6b4a622530df5244f1b41782 (patch) | |
tree | 7ca5d3cb15fe901ee4bdf0d29f790a719ae9fbd5 /youtube_dl/options.py | |
parent | b1edd7a48ace472f89cda7503f104a98fc67ee30 (diff) |
Add --flat-playlist option (Closes #4003)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r-- | youtube_dl/options.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 649361bde..2b1cd7438 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -159,6 +159,11 @@ def parseOpts(overrideArguments=None): '--ignore-config', action='store_true', help='Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: do not read the user configuration in ~/.config/youtube-dl.conf (%APPDATA%/youtube-dl/config.txt on Windows)') + general.add_option( + '--flat-playlist', + action='store_const', dest='extract_flat', const='in_playlist', + default=False, + help='Do not extract the videos of a playlist, only list them.') selection = optparse.OptionGroup(parser, 'Video Selection') selection.add_option( |