From 09de07a8e94cfb7b87feac0d9634abcca4d4e15e Mon Sep 17 00:00:00 2001 From: Nzix Date: Thu, 9 May 2019 15:22:32 +0800 Subject: [PATCH] optimize #17 --- app.py | 2 +- requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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