Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix M3U playlist abort #276

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

laszloh
Copy link
Contributor

@laszloh laszloh commented Dec 7, 2023

Fix a bug where the playlist was aborted. This happens when we encounter an errorous link which gets redirected to a 404 page by the server. Since the connection got successfully etablished, but we get no audio stream, we aborted the whole playlist.

This commit introduces a (currently) hardcoded timeout of 2s. If we do not get a working audio stream until then, after which we jump to the next title.

When the webstream connects but is redirected to a 404 page, we should not abort the playlist but jump to the next entry.
@tueddy tueddy merged commit 0db1e86 into biologist79:dev Dec 8, 2023
10 checks passed
tueddy pushed a commit that referenced this pull request Jan 2, 2024
…f0b078 (#285)

Some properties like repeatCurrentTrack, repeatPlaylist, sleepAfterCurrentTrack, sleepAfterPlaylist, saveLastPlayPosition got lost with af0b078

See also https://forum.espuino.de/t/3-bugs-in-audioplayer-cpp-hoerbuchmodus-speichern-der-playposition-sleepafter/2456/3?u=sfields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants