Skip to content

Commit

Permalink
Update audioscrobbler.liq
Browse files Browse the repository at this point in the history
Defining timestamp as `time()` in `audioscrobbler.api.track.scrobble` function makes it freeze and show the same time for all scrobbled tracks. Using `time()` right inside `params` fixes it.
  • Loading branch information
gAlleb authored Dec 14, 2024
1 parent 5cb4ad6 commit cd351a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/extra/audioscrobbler.liq
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ def audioscrobbler.api.track.scrobble(
~api_secret=null(),
~artist,
~track,
~timestamp=time(),
~album=null(),
~context=null(),
~streamId=null(),
Expand All @@ -307,7 +306,7 @@ def audioscrobbler.api.track.scrobble(
[
("track", track),
("artist", artist),
("timestamp", string(timestamp)),
("timestamp", string(time())),
...(null.defined(album) ? [("album", null.get(album))] : [] ),
...(null.defined(context) ? [("context", null.get(context))] : [] ),
...(null.defined(streamId) ? [("streamId", null.get(streamId))] : [] ),
Expand Down

0 comments on commit cd351a0

Please sign in to comment.