1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Add release_artist_name and correct duration

This commit is contained in:
badlandspray 2022-07-15 15:18:22 +00:00 committed by GitHub
parent f7251c613c
commit 3fd02c1675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ class Listenbrainz(APIHandler):
# fields that will not be consumed by regular scrobbling
# will go into 'extra'
k:additional[k]
for k in ['track_mbid', 'release_mbid','artist_mbids','recording_mbid','tags', 'origin_url', 'spotify_id', 'music_service', 'music_service_name', 'submission_client']
for k in ['track_mbid', 'release_mbid', 'release_artist_name', 'artist_mbids','recording_mbid','tags', 'origin_url', 'spotify_id', 'music_service', 'music_service_name', 'submission_client']
if k in additional
}
@ -77,7 +77,7 @@ class Listenbrainz(APIHandler):
'track_title':titlestr,
'album_name':albumstr,
'scrobble_time':timestamp,
'track_length': additional.get("duration"),
'duration': additional.get("duration"),
**extrafields
},client=client)