- commit
- 63a5c7f60d04ffb47822b3902d8b6b3303f6ddaf
- parent
- 92e8580598551428e58adc86eb9b60e20198f056
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-10-04 17:34
make youtube optional
Diffstat
| M | xspf2m3u.py | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/xspf2m3u.py b/xspf2m3u.py
@@ -74,6 +74,7 @@ def parse_args(): 74 74 parser = argparse.ArgumentParser() 75 75 parser.add_argument('src') 76 76 parser.add_argument('folder') -1 77 parser.add_argument('-Y', '--youtube', action='store_true') 77 78 return parser.parse_args() 78 79 79 80 @@ -89,7 +90,7 @@ def main(): 89 90 context = [track[k] for k in context_key if track[k]] 90 91 location = find_by_title(track['title'], context, files) 91 9292 -1 if location is None and youtube_dl:-1 93 if location is None and args.youtube and youtube_dl: 93 94 location = search_youtube([q for q in track.values() if q]) 94 95 95 96 if location is None: