diff --git a/zotify/__main__.py b/zotify/__main__.py index 1d0cb11..0e1d155 100644 --- a/zotify/__main__.py +++ b/zotify/__main__.py @@ -71,6 +71,7 @@ def main(): "-d", "--download", type=str, + nargs="*", help="Downloads tracks, playlists and albums from the URLs written in the file passed.", ) group.add_argument( diff --git a/zotify/app.py b/zotify/app.py index 613644c..aacc26d 100644 --- a/zotify/app.py +++ b/zotify/app.py @@ -211,7 +211,7 @@ class App: return selection.get("episodes") elif args.download: ids = [] - for x in args.download.split(", "): + for x in args.download: ids.extend(selection.from_file(x.strip())) return ids elif args.urls: