diff --git a/app.py b/app.py index a1271f5..3f74103 100644 --- a/app.py +++ b/app.py @@ -54,7 +54,7 @@ def validate_collision(path): def name_format(path, meta): information = { - 'artist': ','.join([artist[0] for artist in (meta.get('artist') if meta.get('artist') is not None else [])]), + 'artist': ','.join([artist[0] for artist in meta.get('artist')]) if 'artist' in meta else None, 'title': meta.get('musicName'), 'album': meta.get('album') } diff --git a/requirements.txt b/requirements.txt index db67121..97a6859 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ -Crypto mutagen pycryptodome