|
|
|
@ -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'):
|
|
|
|
|