I just started using streamlink and this plugin, so excuse me if I'm just doing something wrong.
While playing a Twitch stream that has ads, streamlink gets an exception if --twitch-reexec-on-ad
kicks in.
$ ./streamlink-5.5.1-2-cp311-cp311-manylinux2014_x86_64.AppImage --twitch-ttvlol --twitch-reexec-on-ad --player=mpv --player-args="pause=no" https://www.twitch.tv/mogra best
[plugins.twitch][info] Streamlink Twitch plugin (2bc4 fork).
[plugins.twitch][info] Please report issues to https://github.com/2bc4/streamlink-ttvlol/issues
[cli][info] Found matching plugin twitch for URL https://www.twitch.tv/mogra
[plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 1080p60 (best)
[cli][info] Opening stream: 1080p60 (hls)
[cli][info] Starting player: mpv
[plugins.twitch][info] Encountered an ad segment, re-execing to retrieve a new playlist
Exception in thread Thread-TwitchHLSStreamWriter:
Traceback (most recent call last):
File "/tmp/.mount_streamNES9hh/opt/python3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/tmp/.mount_streamNES9hh/opt/python3.11/lib/python3.11/site-packages/streamlink/stream/segmented.py", line 209, in run
self.write(segment, result, *data)
File "/tmp/.mount_streamNES9hh/opt/python3.11/lib/python3.11/site-packages/streamlink/stream/hls.py", line 216, in write
if not self.should_filter_sequence(sequence):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/streamlink/plugins/twitch.py", line 189, in should_filter_sequence
os.execv(sys.argv[0], sys.argv)
PermissionError: [Errno 13] Permission denied
[cli][info] Stream ended
error: Error when reading from stream: Read timeout, exiting
[cli][info] Closing currently open stream...
$ ./streamlink-5.5.1-2-cp311-cp311-manylinux2014_x86_64.AppImage --twitch-ttvlol --player=mpv --player-args="pause=no" https://www.twitch.tv/mogra best
[plugins.twitch][info] Streamlink Twitch plugin (2bc4 fork).
[plugins.twitch][info] Please report issues to https://github.com/2bc4/streamlink-ttvlol/issues
[cli][info] Found matching plugin twitch for URL https://www.twitch.tv/mogra
[plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[plugins.twitch][error] Unable to open URL: https://api.ttv.lol/playlist/mogra.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue (500 Server Error: Internal Server Error for url: https://api.ttv.lol/playlist/mogra.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue)
error: No playable streams found on this URL: https://www.twitch.tv/mogra
I'm using Fedora 38, the streamlink 5.5.1 appimage, and the latest release version (5.4.0-20230415) of this plugin placed in ~/.local/share/streamlink/plugins.