Skip to content

Commit

Permalink
Remove useless API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Jun 27, 2024
1 parent 23e42e3 commit 58bb645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/lastfm.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async function makeAuthCallAsync(method, params)
window.lastfm_registerNowPlayingAsync = lastfm_registerNowPlayingAsync;
async function lastfm_registerNowPlayingAsync(song, artist, album, length)
{
if (!lastFmApiKey) return;
const json = await makeAuthCallAsync("track.updateNowPlaying", {
artist: artist,
track: song,
Expand All @@ -55,6 +56,7 @@ async function lastfm_registerNowPlayingAsync(song, artist, album, length)
window.lastfm_registerScrobbleAsync = lastfm_registerScrobbleAsync;
async function lastfm_registerScrobbleAsync(song, artist, album, length, timestamp)
{
if (!lastFmApiKey) return;
const json = await makeAuthCallAsync("track.scrobble", {
artist: artist,
track: song,
Expand Down

0 comments on commit 58bb645

Please sign in to comment.