tryffel / jellycli

Jellyfin terminal client
GNU General Public License v3.0
206 stars 8 forks source link

When casting and playing playlist, plays in the wrong order #41

Open jgoerzen opened 1 year ago

jgoerzen commented 1 year ago

Hi,

Thanks for jellycli!

I've noticed an odd issue. If I select the playlist from within jellycli, all is well. But if am using the Jellyfin Web UI and cast a playlist to jellycli, it plays in the wrong order.

I have playlists consisting of tracks from multiple albums. They might look like this:

So that playlist would have 35 tracks. It should properly play all the album 1 tracks, then all the album 2 tracks, then all the album 3 tracks. It does do this when navigating to the playlist in jellycli.

But, when navigating to the playlist in Jellyfin and then casting it to jellycli to play, it will play in this rought order:

When running with --no-gui, I often see:

[14:42:13.494]  INFO Too many songs for single query, split query: 27 total, 2 queries
[14:42:13.548]  INFO Stop audio
[14:42:13.549] ERROR stop: audio stream completed but streamer is nil
[14:42:13.555] ERROR report audio progress to server: push progress: invalid request, code: 400, msg: {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-90b51db967cfd4b2e8ebfb3fa7683a88-139ed119018933fc-00","errors":{"":["The supplied value is invalid."],"playbackStopInfo":["The playbackStopInfo field is required."]}}
jvandervorm commented 1 year ago

Probably related to #30.