aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-09-14 20:21:09 +0100
committerRemita Amine <remitamine@gmail.com>2016-09-14 20:21:09 +0100
commit87148bb7110ed54ef50f0660dfe0a735cdede3ca (patch)
tree398f740c6023d1f8062db59e1cf09e72a40499be /youtube_dl
parent797c636bcb02d1199015b753d26430eec13c4b2b (diff)
[adobepass] rename --ap-mso-list option to --ap-list-mso
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/__init__.py4
-rw-r--r--youtube_dl/options.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 5614ef0fb..1cf3140a0 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -120,7 +120,7 @@ def _real_main(argv=None):
desc += ' (Example: "%s%s:%s" )' % (ie.SEARCH_KEY, random.choice(_COUNTS), random.choice(_SEARCHES))
write_string(desc + '\n', out=sys.stdout)
sys.exit(0)
- if opts.ap_mso_list:
+ if opts.ap_list_mso:
table = [[mso_id, mso_info['name']] for mso_id, mso_info in MSO_INFO.items()]
write_string('Supported TV Providers:\n' + render_table(['mso', 'mso name'], table) + '\n', out=sys.stdout)
sys.exit(0)
@@ -166,7 +166,7 @@ def _real_main(argv=None):
else:
opts.max_sleep_interval = opts.sleep_interval
if opts.ap_mso and opts.ap_mso not in MSO_INFO:
- parser.error('Unsupported TV Provider, use --ap-mso-list to get a list of supported TV Providers')
+ parser.error('Unsupported TV Provider, use --ap-list-mso to get a list of supported TV Providers')
def parse_retries(retries):
if retries in ('inf', 'infinite'):
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 46c326b3d..b2e863119 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -365,8 +365,8 @@ def parseOpts(overrideArguments=None):
dest='ap_password', metavar='PASSWORD',
help='TV Provider Account password. If this option is left out, youtube-dl will ask interactively.')
adobe_pass.add_option(
- '--ap-mso-list',
- action='store_true', dest='ap_mso_list', default=False,
+ '--ap-list-mso',
+ action='store_true', dest='ap_list_mso', default=False,
help='List all supported TV Providers')
video_format = optparse.OptionGroup(parser, 'Video Format Options')