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
parent
commit
93a51293c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app.py
  2. 1
      requirements.txt

6
app.py

@ -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
requirements.txt

@ -1,2 +1,3 @@
Crypto
mutagen
pycryptodome

Loading…
Cancel
Save