select instance arg

This commit is contained in:
localhost_frssoft 2024-07-24 15:13:31 +03:00
parent 447c7e020d
commit e8252246d3

View File

@ -13,7 +13,10 @@ parser = argparse.ArgumentParser(
description='Create playlist from query or just random playlist tracks from funkwhale instances') description='Create playlist from query or just random playlist tracks from funkwhale instances')
parser.add_argument('-s', '--search') parser.add_argument('-s', '--search')
parser.add_argument('-t', '--tag') parser.add_argument('-t', '--tag')
parser.add_argument('-i', '--instance')
args = parser.parse_args() args = parser.parse_args()
if args.instance:
instances = [args.instance]
def create_playlist_file(track_list): def create_playlist_file(track_list):