From 6b9a7e2f9f0c2074cfddc933d0d3f6617536583f Mon Sep 17 00:00:00 2001 From: Travis Menghini Date: Sun, 8 Dec 2024 17:33:44 -0600 Subject: [PATCH] Fixes compliance issue with ListenBrainz API --- maloja/apis/listenbrainz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maloja/apis/listenbrainz.py b/maloja/apis/listenbrainz.py index 20400999..b1a27244 100644 --- a/maloja/apis/listenbrainz.py +++ b/maloja/apis/listenbrainz.py @@ -79,7 +79,7 @@ def submit(self,pathnodes,keys): 'track_title':titlestr, 'album_title':albumstr, 'scrobble_time':timestamp, - 'track_length': additional.get("duration"), + 'track_length': additional.get("duration_ms") or additional.get("duration"), **extrafields },client=client)