From 95fb55b8ca3d5f513c73214286886456497aff4a Mon Sep 17 00:00:00 2001 From: Stefan <144447266+gAlleb@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:07:15 +0300 Subject: [PATCH] Update audioscrobbler.liq (#4271) Co-authored-by: Romain Beauxis --- src/libs/extra/audioscrobbler.liq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/extra/audioscrobbler.liq b/src/libs/extra/audioscrobbler.liq index 5691a2f5be..8b3fa3bdbb 100644 --- a/src/libs/extra/audioscrobbler.liq +++ b/src/libs/extra/audioscrobbler.liq @@ -283,7 +283,7 @@ def audioscrobbler.api.track.scrobble( ~api_secret=null(), ~artist, ~track, - ~timestamp=time(), + ~timestamp=null(), ~album=null(), ~context=null(), ~streamId=null(), @@ -307,7 +307,7 @@ def audioscrobbler.api.track.scrobble( [ ("track", track), ("artist", artist), - ("timestamp", string(timestamp)), + ("timestamp", string(timestamp ?? time())), ...(null.defined(album) ? [("album", null.get(album))] : [] ), ...(null.defined(context) ? [("context", null.get(context))] : [] ), ...(null.defined(streamId) ? [("streamId", null.get(streamId))] : [] ),