def main():
lib_lst = [section['section_name'] for section in get_libraries_table()]
parser = argparse.ArgumentParser(description="Use PlexPy to pull plays by library",
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('-l', '--libraries', nargs='+', type=str, choices=lib_lst, metavar='',
help='Space separated list of case sensitive names to process. Allowed names are: \n'
'(choices: %(choices)s)')
opts = parser.parse_args()
for section in get_libraries_table(opts.libraries):
sec_name = section['section_name']
sec_plays = section['plays']
print(OUTPUT.format(section=sec_name, plays=sec_plays))
评论列表
文章目录