bitfocus / companion-module-spotify-remote

MIT License
9 stars 7 forks source link

add seek position action, add status icon variable #19

Closed bevanjkay closed 3 years ago

bevanjkay commented 3 years ago

Adds functionality to close #17 and #18

jmcc94 commented 3 years ago

@bevanjkay - thanks. Works really well.

Just a small pedantic issue - when no current song is being returned, the time remaining is shown as 0, rather than 00:00:00

Is this an easy fix?

bevanjkay commented 3 years ago

@jmcc94 I have a quick fix ready to push for this one.

I am thinking it would also be best to set the formatting to MM:SS when the length is less than an hour. Does this work for you? It could be configurable in the options, or include a second variable.

jmcc94 commented 3 years ago

@bevanjkay - Yes works for me... not sure how many Spotify tracks will be over the 1hr mark... maybe some podcasts?

I think you could also do it like the VLC module does - break each element HH, MM, SS into their own variables, as well as the collective...