mopidy-ytmusic icon indicating copy to clipboard operation
mopidy-ytmusic copied to clipboard

Songs are skipped when player URL is out of date

Open kmac opened this issue 2 years ago • 0 comments

The current handling of the case where we get a 403 when playing a song is to queue a player refresh and report the error. This results in the song being skipped. I usually listen to albums so this is very noticeable to me when it happens.

Looking at the implementation around the https://github.com/OzymandiasTheGreat/mopidy-ytmusic/blob/cc5e1479260e75cbf11bc783ec90276a75f20ff1/mopidy_ytmusic/playback.py#L166

I'm wondering if it's feasible to refresh the player inline and retry. I'll likely give this a go, but if anyone has ideas around a better approach here I would appreciate any input. I'm new to this project so I'd like to understand a little more around why URLs expire and why we need to keep refreshing the player.

kmac avatar May 12 '22 16:05 kmac