Browse Source
Merge pull request #17 from leconio/master
fix artist's dict cannot be found exception
pull/19/head
Nzix
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
3 deletions
-
app.py
-
requirements.txt
|
|
@ -54,9 +54,9 @@ def validate_collision(path): |
|
|
|
|
|
|
|
def name_format(path, meta): |
|
|
|
information = { |
|
|
|
'artist': ','.join([artist[0] for artist in meta['artist']]), |
|
|
|
'title': meta['musicName'], |
|
|
|
'album': meta['album'] |
|
|
|
'artist': ','.join([artist[0] for artist in (meta.get('artist') if meta.get('artist') is not None else [])]), |
|
|
|
'title': meta.get('musicName'), |
|
|
|
'album': meta.get('album') |
|
|
|
} |
|
|
|
|
|
|
|
def substitute(matched): |
|
|
|
|
|
@ -1,2 +1,3 @@ |
|
|
|
Crypto |
|
|
|
mutagen |
|
|
|
pycryptodome |
|
|
|