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:
parent
f7251c613c
commit
3fd02c1675
@ -68,7 +68,7 @@ class Listenbrainz(APIHandler):
|
|||||||
# fields that will not be consumed by regular scrobbling
|
# fields that will not be consumed by regular scrobbling
|
||||||
# will go into 'extra'
|
# will go into 'extra'
|
||||||
k:additional[k]
|
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
|
if k in additional
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class Listenbrainz(APIHandler):
|
|||||||
'track_title':titlestr,
|
'track_title':titlestr,
|
||||||
'album_name':albumstr,
|
'album_name':albumstr,
|
||||||
'scrobble_time':timestamp,
|
'scrobble_time':timestamp,
|
||||||
'track_length': additional.get("duration"),
|
'duration': additional.get("duration"),
|
||||||
**extrafields
|
**extrafields
|
||||||
},client=client)
|
},client=client)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user