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

Track more additional information

This commit is contained in:
badlandspray 2022-06-09 17:54:20 +00:00 committed by GitHub
parent a1b2261fa7
commit d57bf33969
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 ['release_mbid','artist_mbids','recording_mbid','tags']
for k in ['track_mbid', 'release_mbid','artist_mbids','recording_mbid','tags', 'spotify_id']
if k in additional
}
@ -77,6 +77,7 @@ class Listenbrainz(APIHandler):
'track_title':titlestr,
'album_name':albumstr,
'scrobble_time':timestamp,
'track_length': additional.get("duration"),
**extrafields
},client=client)