CappielloAntonio / tempo

An open source and lightweight music client for Subsonic, designed and built natively for Android.
GNU General Public License v3.0
1.06k stars 49 forks source link

Cannot play a track with an index higher than 16 #43

Closed Elbullazul closed 1 year ago

Elbullazul commented 1 year ago

When selecting a song in a playlist or a playlist with an index higher than 16 (ex. the 18th song in a playlist), Tempo plays the 16th track instead.

dnno commented 1 year ago

The culprit is a constant used in MusicUtil.getPlayableMediaPosition()

const val PRE_PLAYABLE_MEDIA = 15

There's probably some reasoning why this is there, but in this usecase it's doing something unwanted, i guess.

CappielloAntonio commented 1 year ago

I'm working on it

CappielloAntonio commented 1 year ago

Done! The fix should be included in the next release which will happen very soon