Correct handling of failed playback (do not skip two songs)
This commit is contained in:
parent
59bf086885
commit
8cc6674723
1 changed files with 1 additions and 0 deletions
|
@ -460,6 +460,7 @@ class Client:
|
||||||
await self.player.play(video, audio, source.extra_mpv_options)
|
await self.player.play(video, audio, source.extra_mpv_options)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
logger.error("Error playing: %s", e)
|
logger.error("Error playing: %s", e)
|
||||||
|
self.skipped.append(entry.uuid)
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
print_exc()
|
print_exc()
|
||||||
if self.skipped:
|
if self.skipped:
|
||||||
|
|
Loading…
Add table
Reference in a new issue