Skip to content

Commit

Permalink
Add getCurrentTrackArtworkURL() to spotify extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vjo committed Oct 11, 2023
1 parent 0ccc9d0 commit cb10866
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions extensions/spotify/spotify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,20 @@ end
function spotify.getCurrentTrack()
return tell('name of the current track')
end

--- hs.spotify.getCurrentTrackArtworkURL()
--- Function
--- Gets the artwork URL of the current track
---
--- Parameters:
--- * None
---
--- Returns:
--- * A string containing the URL of the artwork for the current track, or nil if an error occurred
function spotify.getCurrentTrackArtworkURL()
return tell('artwork url of current track')
end

--- hs.spotify.getCurrentTrackId()
--- Function
--- Gets the id of the current track
Expand Down

0 comments on commit cb10866

Please sign in to comment.