mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Allow minimal listenbrainz payload
This commit is contained in:
parent
c1493255b7
commit
260c587248
@ -54,7 +54,8 @@ class Listenbrainz(APIHandler):
|
|||||||
for listen in payload:
|
for listen in payload:
|
||||||
try:
|
try:
|
||||||
metadata = listen["track_metadata"]
|
metadata = listen["track_metadata"]
|
||||||
artiststr, titlestr, albumstr = metadata["artist_name"], metadata["track_name"], metadata["release_name"]
|
artiststr, titlestr = metadata["artist_name"], metadata["track_name"]
|
||||||
|
albumstr = metadata.get("release_name")
|
||||||
additional = metadata.get("additional_info",{})
|
additional = metadata.get("additional_info",{})
|
||||||
try:
|
try:
|
||||||
timestamp = int(listen["listened_at"])
|
timestamp = int(listen["listened_at"])
|
||||||
|
Loading…
Reference in New Issue
Block a user