mirror of
https://github.com/krateng/maloja.git
synced 2025-04-15 16:30:32 +03:00
Merge pull request #233 from brendantwh/fix_maloja_album_import
Fix AttributeError NoneType get when importing Maloja export
This commit is contained in:
commit
42c38e6c8c
@ -351,7 +351,7 @@ def parse_maloja(inputf):
|
||||
'track_title': s['track']['title'],
|
||||
'track_artists': s['track']['artists'],
|
||||
'track_length': s['track']['length'],
|
||||
'album_name': s['track'].get('album',{}).get('name',''),
|
||||
'album_name': s['track'].get('album',{}).get('albumtitle','') if s['track'].get('album') is not None else '',
|
||||
'scrobble_time': s['time'],
|
||||
'scrobble_duration': s['duration']
|
||||
},'')
|
||||
|
Loading…
x
Reference in New Issue
Block a user