Skip to content

Commit

Permalink
Make timestamp optional
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Dec 15, 2024
1 parent cd351a0 commit 4d3566f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/extra/audioscrobbler.liq
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def audioscrobbler.api.track.scrobble(
~api_secret=null(),
~artist,
~track,
~timestamp=null(),
~album=null(),
~context=null(),
~streamId=null(),
Expand All @@ -306,7 +307,7 @@ def audioscrobbler.api.track.scrobble(
[
("track", track),
("artist", artist),
("timestamp", string(time())),
("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))] : [] ),
Expand Down

0 comments on commit 4d3566f

Please sign in to comment.