Giter Site home page Giter Site logo

streamlink-ttvlol's Introduction

streamlink-ttvlol's People

Contributors

2bc4 avatar sokoloft avatar zgato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

streamlink-ttvlol's Issues

Only --player-passthrough hls works correctly with luminous?

Tried this on different PCs and different streams (summit1g is just one example I used here) and get the same result.
--player-passthrough hls works correctly using mpv, no ads displayed, but unable to use twitch low latency option according to https://github.com/streamlink/streamlink-twitch-gui/wiki/Recommendations. Using anything else (standard input/named pipe/http) shows ads.

Shows ads:
streamlink.exe twitch.tv/summit1g best --twitch-proxy-playlist=http://192.168.1.81:9595,https://eu.luminous.dev,https://eu2.luminous.dev

Works correctly:
streamlink.exe twitch.tv/summit1g best --twitch-proxy-playlist=http://192.168.1.81:9595,https://eu.luminous.dev,https://eu2.luminous.dev --player-passthrough hls

Debug output that shows ads

streamlink.exe twitch.tv/summit1g best --twitch-proxy-playlist=http://192.168.1.81:9595,https://eu.luminous.dev,https://eu2.luminous.dev --loglevel trace
[11:16:54.450769][session][debug] Plugin twitch is being overridden by C:\Users\user\AppData\Roaming\streamlink\plugins\twitch.py
[11:16:54.460554][cli][debug] OS: Windows 10
[11:16:54.460554][cli][debug] Python: 3.11.1
[11:16:54.461555][cli][debug] Streamlink: 5.1.2
[11:16:54.462394][cli][debug] Dependencies:
[11:16:54.463404][cli][debug] certifi: 2022.12.7
[11:16:54.464396][cli][debug] isodate: 0.6.1
[11:16:54.464396][cli][debug] lxml: 4.9.2
[11:16:54.465398][cli][debug] pycountry: 22.3.5
[11:16:54.467102][cli][debug] pycryptodome: 3.16.0
[11:16:54.467102][cli][debug] PySocks: 1.7.1
[11:16:54.468097][cli][debug] requests: 2.28.1
[11:16:54.469098][cli][debug] urllib3: 1.26.13
[11:16:54.469098][cli][debug] websocket-client: 1.4.2
[11:16:54.475103][cli][debug] Arguments:
[11:16:54.475103][cli][debug] url=twitch.tv/summit1g
[11:16:54.475103][cli][debug] stream=['best']
[11:16:54.476111][cli][debug] --loglevel=trace
[11:16:54.476111][cli][debug] --player="C:\MPV\mpv.exe"
[11:16:54.478108][cli][debug] --ffmpeg-ffmpeg=C:\Program Files\Streamlink\ffmpeg\ffmpeg.exe
[11:16:54.478875][cli][debug] --twitch-proxy-playlist=['http://192.168.1.81:9595', 'https://eu.luminous.dev', 'https://eu2.luminous.dev']
[11:16:54.479589][cli][info] Found matching plugin twitch for URL twitch.tv/summit1g
[11:16:54.479589][plugins.twitch][debug] Getting live HLS streams for summit1g
[11:16:54.481592][plugins.twitch][info] Using playlist proxy 'http://192.168.1.81:9595'
[11:16:54.481592][plugins.twitch][debug] Playlist proxy URL: http://192.168.1.81:9595/playlist/summit1g.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue
[11:16:54.509221][utils.l10n][debug] Language code: en_US
[11:16:55.403777][cli][info] Available streams: 160p (worst), 360p, 480p, 720p60, 936p60 (best)
[11:16:55.403777][cli][info] Opening stream: 936p60 (hls)
[11:16:55.404778][cli][info] Starting player: "C:\MPV\mpv.exe"
[11:16:55.406672][stream.hls][debug] Reloading playlist
[11:16:55.406672][cli][debug] Pre-buffering 8192 bytes
[11:16:56.072579][stream.hls][debug] First Sequence: 0; Last Sequence: 2
[11:16:56.073580][stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: None
[11:16:56.074581][stream.hls][debug] Adding segment 0 to queue
[11:16:56.075582][stream.hls][debug] Adding segment 1 to queue
[11:16:56.075582][stream.hls][debug] Adding segment 2 to queue
[11:16:56.193679][stream.hls][debug] Writing segment 0 to output
[11:16:56.194641][stream.hls][debug] Segment 0 complete
[11:16:56.195650][cli.output][debug] Opening subprocess: "C:\MPV\mpv.exe" --force-media-title=twitch.tv/summit1g -
[11:16:56.245837][stream.hls][debug] Writing segment 1 to output
[11:16:56.247840][stream.hls][debug] Segment 1 complete
[11:16:56.273031][stream.hls][debug] Writing segment 2 to output
[11:16:56.274034][stream.hls][debug] Segment 2 complete
[11:16:56.699285][cli][debug] Writing stream to output
[11:17:01.079628][stream.hls][debug] Reloading playlist
[11:17:01.148586][stream.hls][debug] Adding segment 3 to queue
[11:17:01.166767][stream.hls][debug] Writing segment 3 to output
[11:17:01.166767][stream.hls][debug] Segment 3 complete
[11:17:01.305830][cli][info] Player closed
[11:17:01.306644][stream.segmented][debug] Closing worker thread
[11:17:01.307642][stream.segmented][debug] Closing writer thread
[11:17:01.307642][stream.segmented][debug] Closing writer thread
[11:17:01.311646][cli][info] Stream ended
[11:17:01.313621][cli][info] Closing currently open stream...

perfprod proxies block requests from Python 3.8 Streamlink

It does not work with the V1 perfprod proxies anymore. It broke this week and was fine before. The luminous.dev servers still fetch a stream but with ads (They never really filtered ads for me).

C:\Windows\System32>"C:\Program Files\StreamlinkPortable\streamlink-6.4.2-1-py38
-x86_64\bin\streamlink" --no-config --twitch-proxy-playlist=https://lb-eu2.cdn-p
erfprod.com twitch.tv/lirik 720p60
[plugins.twitch][info] streamlink-ttvlol 6.3.0-20231025 (6.4.2)
[plugins.twitch][info] Please report issues to https://github.com/2bc4/streamlin
k-ttvlol/issues
[cli][info] Found matching plugin twitch for URL twitch.tv/lirik
[plugins.twitch][info] Using playlist proxy 'https://lb-eu2.cdn-perfprod.com'
[plugins.twitch][error] Unable to open URL: https://lb-eu2.cdn-perfprod.com/play
list/lirik.m3u8%3Fallow_source%3Dtrue%26allow_audio_only%3Dtrue%26fast_bread%3Dt
rue (403 Client Error: Forbidden for url: https://lb-eu2.cdn-perfprod.com/playli
st/lirik.m3u8%3Fallow_source%3Dtrue%26allow_audio_only%3Dtrue%26fast_bread%3Dtru
e)
error: No playable streams found on this URL: twitch.tv/lirik

Error and I don't know what I'm missing.

I installed the latest streamlink from pip and overwrite the twitch.py ​​file with 6.6.0-20240216.
Or do I have to install something extra to use it? I don't know. Thanks for your help

error image

Saving stream with `--twitch-reexec-on-ad` overwrites/tries to overwrite initial portion

When running streamlink with -o or -r arguments and --twitch-reexec-on-ad, encountering an ad segment will try to overwrite the initial saved portion (since it's just calling the same streamlink command with the same output file argument).

This is a simple hack which appends a counter to the output file to avoid the problem:

diff --git a/twitch.py b/twitch.py
index 82ff3a4..e05522e 100644
--- a/twitch.py
+++ b/twitch.py
@@ -177,16 +177,30 @@ class TwitchHLSStreamWriter(HLSStreamWriter):
     reader: "TwitchHLSStreamReader"
     stream: "TwitchHLSStream"
 
+    def __init__(self, *args, **kwargs) -> None:
+        self._reexec_counter = 0
+        super().__init__(*args, **kwargs)
+
     def should_filter_sequence(self, sequence: TwitchSequence):  # type: ignore[override]
         if self.stream.reexec_on_ad and sequence.segment.ad:
             log.info("Encountered an ad segment, re-execing to retrieve a new playlist")
+            self._reexec_counter += 1
+
+            args = sys.argv[:]
+            for output_flag in ("-o", "--output", "-r" ,"--record", "-R", "--record-and-pipe"):
+                if output_flag in args:
+                    flag_idx = args.index(output_flag)
+                    if flag_idx + 1 < len(args):
+                        stem, ext = os.path.splitext(args[flag_idx + 1])
+                        args[flag_idx + 1] = f"{stem}-{self._reexec_counter}{ext}"
+
             if sys.platform == "win32":
                 # Python Win32 bug https://bugs.python.org/issue436259
 
                 from subprocess import list2cmdline
-                os.execl(sys.executable, list2cmdline([sys.executable] + sys.argv))
+                os.execl(sys.executable, list2cmdline([sys.executable] + args))
             else:
-                os.execv(sys.argv[0], sys.argv)
+                os.execv(sys.argv[0], args)
 
         return self.stream.disable_ads and sequence.segment.ad
 

Also, thanks for this fantastic plugin.

Luminousttv

This is what happens when using luminous.

Found matching plugin twitch for URL twitch.tv/shotz Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D604495%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D604495%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E2F80>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Waiting for streams, retrying every 1.0 second(s) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D742125%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D742125%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A84F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D25622%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D25622%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3A90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D414544%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D414544%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A9390>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D266756%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D266756%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE71B0670>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D42032%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D42032%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72AA6B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D320279%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D320279%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A81F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D4122%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D4122%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3D60>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D808984%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D808984%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72AA860>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D459169%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D459169%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A97B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D862416%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D862416%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3490>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D810474%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D810474%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A99C0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D742041%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D742041%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A87F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D145783%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D145783%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E36A0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D27701%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D27701%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A8AF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D277695%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D277695%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72AAB90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D620042%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D620042%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A99C0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D480936%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D480936%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A8820>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D535540%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D535540%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3A90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D936161%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D936161%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE8260D00>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D692602%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D692602%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A93F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D277431%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D277431%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72ABEB0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D847951%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D847951%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A95A0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D902203%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D902203%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72AB6D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D336242%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D336242%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3370>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D384681%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D384681%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE8260CD0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D826168%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D826168%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A8D60>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D277375%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D277375%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72ABA00>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D161849%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D161849%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E36A0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D840014%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D840014%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A8E20>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D205862%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D205862%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A8D90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D940010%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D940010%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3910>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D314357%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D314357%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72AB880>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D150857%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D150857%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A97B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D485632%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D485632%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3550>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D109707%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D109707%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A99C0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D964473%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D964473%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72AB730>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D720666%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D720666%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72E3F40>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))) Unable to open URL: http://localhost:9595/playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D647502%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (HTTPConnectionPool(host='localhost', port=9595): Max retries exceeded with url: /playlist/shotz.m3u8%3Fplayer%3Dtwitchweb%26p%3D647502%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3DTrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017CE72A9930>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))

streamlink error

Started Getting this error today. Im using Streamlink 5.5.1 Could this be the case?

image

Please re-enable luminous support

Just added the latest version and I get a error when using luminous proxy. I never had a issue using luminous. Please add support back. If some people can't use it, then they should just not use it, don't deny everyone the option of using luminous when some haven't had any issues with it. Thank you very much

Does not work with --twitch-low-latency

I don't know if this is a normal part of how the proxy works, but when using the --twitch-low-latency option with streamlink, the ads are not blocked with the modified twitch.py. It behaves the way vanilla streamlink works, pausing the stream while the ads run. If it's a normal part of how the proxy works, it should be noted in the readme as it took me a while to figure it out and I'm sure others might have the same problem.

streamlink's m3u8 parser refactor breaks this plugin

streamlink/streamlink@2702c89

streamlink twitch.tv/supinic best
[plugins.twitch][info] streamlink-ttvlol 121ce978-master
[plugins.twitch][info] Please report issues to https://github.com/2bc4/streamlink-ttvlol/issues
[cli][info] Found matching plugin twitch for URL twitch.tv/supinic
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 864p (best)
[cli][info] Opening stream: 864p (hls)
[cli][info] Starting player: mpv
[plugins.twitch][info] Will skip ad segments
Exception in thread Thread-TwitchHLSStreamWorker:
Traceback (most recent call last):
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\Python\Lib\threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\stream\segmented.py", line 238, in run
    for segment in self.iter_segments():
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\stream\hls.py", line 440, in iter_segments
    self.reload_playlist()
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\stream\hls.py", line 344, in reload_playlist
    playlist = self._reload_playlist(res)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\plugins\twitch.py", line 163, in _reload_playlist
    return load_hls_playlist(*args, parser=TwitchM3U8Parser, m3u8=TwitchM3U8)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\stream\hls_playlist.py", line 731, in load
    return parser(base_uri, **kwargs).parse(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\stream\hls_playlist.py", line 653, in parse
    parse_line(line)
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\stream\hls_playlist.py", line 625, in parse_line
    segment = self.get_segment(self.uri(line))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink\plugins\twitch.py", line 121, in get_segment
    extinf: ExtInf = self.state.pop("extinf", None) or ExtInf(0, None)
                     ^^^^^^^^^^
AttributeError: 'TwitchM3U8Parser' object has no attribute 'state'. Did you mean: '_date'?
[cli][error] Try 1/1: Could not open stream <TwitchHLSStream ['hls', '...']> (Failed to read data from stream: Read timeout)
error: Could not open stream <TwitchHLSStream ['hls', '...']>, tried 1 times, exiting
[cli][info] Closing currently open stream...

AttributeError: 'Namespace' object has no attribute 'twitch_proxy_playlist'

New issue with streamlink 6.6.2+1.gf205f54

❯ streamlink twitch.tv/channel best
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\bin\streamlink.exe\__main__.py", line 18, in <module>
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink_cli\main.py", line 933, in main
    handle_url()
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink_cli\main.py", line 543, in handle_url
    options = setup_plugin_options(pluginname, pluginclass)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\scoop\apps\streamlink-nightly-lean-ttv-lol\current\pkgs\streamlink_cli\main.py", line 749, in setup_plugin_options
    value = getattr(args, parg.namespace_dest(pluginname))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'twitch_proxy_playlist'

Question about keeping this up to date

First, let me thank you for creating this plugin. Second, will you be keeping this plugin in line with updates from the official twitch plugin from streamlink?
Thank you very much

Not a plugin issue

I know its not the right place to ask this. But we don't have a discussion board here. Does anyone else use vlc for video outputs? It seems to be crashing for me ALOT.

Any new updates about the http proxy support?

Hi, I saw the http proxy branch and I am looking forward to using normal proxies with steamlink, any news on the progress of that branch? I think I read that you said it doesn't block ads yet, I tried it with a ttvlolpro v2 proxy and it didn't block ads at all. Just wanted to ask how is it going. Thank you very much

twitch-proxy-playlist flag fails with comma list

Streamlink parse twitch-proxy-playlist=https://api.ttv.lol,https://eu.luminous.dev,https://eu2.luminous.dev in %appdata%\streamlink\config.twitch as a single url without separating at commas
Tried moving flag to general config file or escaping commas: x.com`,a.com\,b.com and "a.com,b.com"

Log:
[session][debug] Plugin twitch is being overridden by C:\Users\[User]\AppData\Roaming\streamlink\plugins\twitch.py

[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.10.8
[cli][debug] Streamlink: 5.1.2
[cli][debug] Dependencies:
[cli][debug]  certifi: 2022.9.24
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 4.9.1
[cli][debug]  pycountry: 22.3.5
[cli][debug]  pycryptodome: 3.16.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.28.1
[cli][debug]  urllib3: 1.26.13
[cli][debug]  websocket-client: 1.4.2
[cli][debug] Arguments:
[cli][debug]  url=https://twitch.tv/[channel]
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --auto-version-check=True
[cli][debug]  --player="[installDir]\VideoLAN\VLC\vlc.exe"
[cli][debug]  --player-args=--play-and-exit --qt-minimal-view --file-caching=250 --network-caching=250
[cli][debug]  --player-no-close=True
[cli][debug]  --title={author} - [{category}] - {{{title}}}
[cli][debug]  --stream-segment-threads=1
[cli][debug]  --hls-live-edge=1
[cli][debug]  --ffmpeg-ffmpeg=[installDir]\Streamlink\ffmpeg\ffmpeg.exe
[cli][debug]  --twitch-disable-ads=True
[cli][debug]  --twitch-low-latency=True
[cli][debug]  --twitch-api-header=[auth]
[cli][debug]  --twitch-proxy-playlist=https://api.ttv.lol,https://eu.luminous.dev,https://eu2.luminous.dev
[cli][info] Found matching plugin twitch for URL https://twitch.tv/[channel]
[plugins.twitch][debug] Getting live HLS streams for [channel]
[plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol,https://eu.luminous.dev,https://eu2.luminous.dev'

[plugins.twitch][debug] Playlist proxy URL: https://api.ttv.lol%2Chttps://eu.luminous.dev%2Chttps://eu2.luminous.dev/playlist/[channel].m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue
[utils.l10n][debug] Language code: en_US
error: Unable to open URL: https://api.ttv.lol%2chttps//eu.luminous.dev%2Chttps://eu2.luminous.dev/playlist/[channel].m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue (HTTPSConnectionPool(host='api.ttv.lol%2chttps', port=443): Max retries exceeded with url: //eu.luminous.dev%2Chttps://eu2.luminous.dev/playlist/[channel].m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001C5406E85B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')))

Passing cli flag to streamlink works: streamlink https://twitch.tv/[channel] best --twitch-proxy-playlist=https://api.ttv.lol,https://eu.luminous.dev,https://eu2.luminous.dev
Using both twitch-ttvlol and twitch-proxy-playlist comma list opens the stream as if only twitch-ttvlol was passed

Log:
[session][debug] Plugin twitch is being overridden by C:\Users\[User]\AppData\Roaming\streamlink\plugins\twitch.py

[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.10.8
[cli][debug] Streamlink: 5.1.2
[cli][debug] Dependencies:
[cli][debug]  certifi: 2022.9.24
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 4.9.1
[cli][debug]  pycountry: 22.3.5
[cli][debug]  pycryptodome: 3.16.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.28.1
[cli][debug]  urllib3: 1.26.13
[cli][debug]  websocket-client: 1.4.2
[cli][debug] Arguments:
[cli][debug]  url=https://twitch.tv/[channel]
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --auto-version-check=True
[cli][debug]  --player="[installDir]\VideoLAN\VLC\vlc.exe"
[cli][debug]  --player-args=--play-and-exit --qt-minimal-view --file-caching=250 --network-caching=250
[cli][debug]  --player-no-close=True
[cli][debug]  --title={author} - [{category}] - {{{title}}}
[cli][debug]  --stream-segment-threads=1
[cli][debug]  --hls-live-edge=1
[cli][debug]  --ffmpeg-ffmpeg=[installDir]\Streamlink\ffmpeg\ffmpeg.exe
[cli][debug]  --twitch-disable-ads=True
[cli][debug]  --twitch-low-latency=True
[cli][debug]  --twitch-api-header=[auth]
[cli][debug]  --twitch-proxy-playlist=https://api.ttv.lol,https://eu.luminous.dev,https://eu2.luminous.dev
[cli][debug]  --twitch-ttvlol=True
[cli][info] Found matching plugin twitch for URL https://twitch.tv/[channel]
[plugins.twitch][debug] Getting live HLS streams for [channel]
[plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[plugins.twitch][debug] Playlist proxy URL: https://api.ttv.lol/playlist/[channel].m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue
[utils.l10n][debug] Language code: en_US
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 1080p60 (best)
[cli][info] Opening stream: 1080p60 (hls)
[cli][info] Starting player: "[installDir]\VideoLAN\VLC\vlc.exe"
[plugins.twitch][info] Will skip ad segments
[plugins.twitch][info] Low latency streaming (HLS live edge: 1)
[stream.hls][debug] Reloading playlist
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] First Sequence: 17376; Last Sequence: 17391
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 17391; End Sequence: None
[stream.hls][debug] Adding segment 17391 to queue
[stream.hls][debug] Writing segment 17391 to output
[cli.output][debug] Opening subprocess: "[installDir]\VideoLAN\VLC\vlc.exe" --input-title-format "[title]" --play-and-exit --qt-minimal-view --file-caching=250 --network-caching=250 -
[cli][debug] Writing stream to output
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 17392 to queue
[stream.hls][debug] Segment 17391 complete
[stream.hls][debug] Writing segment 17392 to output
[cli][info] Player closed
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.hls][debug] Segment 17392 complete
[cli][info] Stream ended
[cli][info] Closing currently open stream...

Unable to load streams

Today I was suddenly unable to load streams, I thought it was the proxy playlist I was using (ttv.lol and luminous) but when I remove those options and try to load the stream normally I get this error:

Streamlink Twitch plugin (2bc4 fork). Please report issues to https://github.com/2bc4/streamlink-ttvlol/issues
Found matching plugin twitch for URL twitch.tv/avoidingthepuddle
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Streamlink\pkgs\streamlink\plugins\twitch.py", line 733, in _access_token

--twitch-reexec-on-ad Doesn't work with Streamlink Twitch GUI

Streams just close without error when viewing in Streamlink Twitch GUI. I'm using mpv and I think it's to do with the order of arguments when playing from Streamlink Twitch GUI. It works from the command line if the arguments are in a specific order, I'll give an example..

This fails:

C:\Users\name>streamlink --player "C:\Program Files (x86)\mpv\mpv.exe" twitch.tv/gothamchess best --twitch-proxy-playlist=https://api.ttv.lol --twitch-reexec-on-ad --loglevel trace
[16:27:12.733982][cli][debug] OS: Windows 10
[16:27:12.733982][cli][debug] Python: 3.10.8
[16:27:12.734982][cli][debug] Streamlink: 5.1.2
[16:27:12.734982][cli][debug] Dependencies:
[16:27:12.736989][cli][debug] certifi: 2022.9.24
[16:27:12.736989][cli][debug] isodate: 0.6.1
[16:27:12.737985][cli][debug] lxml: 4.9.1
[16:27:12.738986][cli][debug] pycountry: 22.3.5
[16:27:12.738986][cli][debug] pycryptodome: 3.16.0
[16:27:12.739987][cli][debug] PySocks: 1.7.1
[16:27:12.739987][cli][debug] requests: 2.28.1
[16:27:12.741989][cli][debug] urllib3: 1.26.13
[16:27:12.741989][cli][debug] websocket-client: 1.4.2
[16:27:12.748995][cli][debug] Arguments:
[16:27:12.748995][cli][debug] url=twitch.tv/gothamchess
[16:27:12.748995][cli][debug] stream=['best']
[16:27:12.748995][cli][debug] --loglevel=trace
[16:27:12.749997][cli][debug] --player=C:\Program Files (x86)\mpv\mpv.exe
[16:27:12.749997][cli][debug] --ffmpeg-ffmpeg=C:\Users\name\AppData\Local\Streamlink\ffmpeg\ffmpeg.exe
[16:27:12.749997][cli][debug] --twitch-proxy-playlist=['https://api.ttv.lol']
[16:27:12.749997][cli][debug] --twitch-reexec-on-ad=True
[16:27:12.750997][cli][info] Found matching plugin twitch for URL twitch.tv/gothamchess
[16:27:12.750997][plugins.twitch][debug] Getting live HLS streams for gothamchess
[16:27:12.751998][plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[16:27:12.751998][plugins.twitch][debug] Raw playlist proxy URL: 'https://api.ttv.lol/playlist/gothamchess.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue'
[16:27:12.785028][utils.l10n][debug] Language code: en_US
[16:27:17.375197][cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 1080p (best)
[16:27:17.375197][cli][info] Opening stream: 1080p (hls)
[16:27:17.376198][cli][info] Starting player: C:\Program Files (x86)\mpv\mpv.exe
[16:27:17.377200][stream.hls][debug] Reloading playlist
[16:27:17.377200][cli][debug] Pre-buffering 8192 bytes
[16:27:17.818601][stream.hls][debug] First Sequence: 4092; Last Sequence: 4105
[16:27:17.818601][stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 4103; End Sequence: None
[16:27:17.819601][stream.hls][debug] Adding segment 4103 to queue
[16:27:17.820602][stream.hls][debug] Adding segment 4104 to queue
[16:27:17.820602][stream.hls][debug] Adding segment 4105 to queue
[16:27:19.003677][stream.hls][debug] Writing segment 4103 to output
[16:27:19.005679][stream.hls][debug] Segment 4103 complete
[16:27:19.005679][cli.output][debug] Opening subprocess: C:\Program Files (x86)\mpv\mpv.exe --force-media-title=twitch.tv/gothamchess -
[16:27:19.241894][stream.hls][debug] Writing segment 4104 to output
[16:27:19.242895][stream.hls][debug] Segment 4104 complete
[16:27:19.399036][stream.hls][debug] Writing segment 4105 to output
[16:27:19.400037][stream.hls][debug] Segment 4105 complete
[16:27:19.513140][cli][debug] Writing stream to output
[16:27:23.837127][stream.hls][debug] Reloading playlist
[16:27:24.268404][stream.hls][debug] Adding segment 4106 to queue
[16:27:24.268404][stream.hls][debug] Adding segment 4107 to queue
[16:27:24.269404][stream.hls][debug] Adding segment 4108 to queue
[16:27:24.270405][stream.hls][debug] Adding segment 4109 to queue
[16:27:24.270405][stream.hls][debug] Adding segment 4110 to queue
[16:27:24.271406][stream.hls][debug] Adding segment 4111 to queue
[16:27:24.425259][stream.hls][debug] Writing segment 4106 to output
[16:27:24.427262][stream.hls][debug] Segment 4106 complete
[16:27:24.558283][plugins.twitch][info] Encountered an ad segment, re-execing to retrieve a new playlist
C:\Users\name>usage: streamlink [OPTIONS] [STREAM]
streamlink: error: unrecognized arguments: twitch.tv/gothamchess best

This works:

C:\Users\name>streamlink twitch.tv/symfuhny best --twitch-proxy-playlist=https://api.ttv.lol --twitch-reexec-on-ad --loglevel trace
[16:48:09.520325][cli][debug] OS: Windows 10
[16:48:09.521325][cli][debug] Python: 3.10.8
[16:48:09.521325][cli][debug] Streamlink: 5.1.2
[16:48:09.522327][cli][debug] Dependencies:
[16:48:09.523328][cli][debug] certifi: 2022.9.24
[16:48:09.524329][cli][debug] isodate: 0.6.1
[16:48:09.524329][cli][debug] lxml: 4.9.1
[16:48:09.525330][cli][debug] pycountry: 22.3.5
[16:48:09.525330][cli][debug] pycryptodome: 3.16.0
[16:48:09.526331][cli][debug] PySocks: 1.7.1
[16:48:09.526331][cli][debug] requests: 2.28.1
[16:48:09.528332][cli][debug] urllib3: 1.26.13
[16:48:09.528332][cli][debug] websocket-client: 1.4.2
[16:48:09.534337][cli][debug] Arguments:
[16:48:09.534337][cli][debug] url=twitch.tv/symfuhny
[16:48:09.535338][cli][debug] stream=['best']
[16:48:09.535338][cli][debug] --loglevel=trace
[16:48:09.535338][cli][debug] --player="C:\Program Files (x86)\mpv\mpv.exe"
[16:48:09.536339][cli][debug] --ffmpeg-ffmpeg=C:\Users\name\AppData\Local\Streamlink\ffmpeg\ffmpeg.exe
[16:48:09.536339][cli][debug] --twitch-proxy-playlist=['https://api.ttv.lol']
[16:48:09.536339][cli][debug] --twitch-reexec-on-ad=True
[16:48:09.537340][cli][info] Found matching plugin twitch for URL twitch.tv/symfuhny
[16:48:09.537340][plugins.twitch][debug] Getting live HLS streams for symfuhny
[16:48:09.538341][plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[16:48:09.538341][plugins.twitch][debug] Raw playlist proxy URL: 'https://api.ttv.lol/playlist/symfuhny.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue'
[16:48:09.570561][utils.l10n][debug] Language code: en_US
[16:48:13.199386][cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 936p60 (best)
[16:48:13.199386][cli][info] Opening stream: 936p60 (hls)
[16:48:13.200387][cli][info] Starting player: "C:\Program Files (x86)\mpv\mpv.exe"
[16:48:13.201388][stream.hls][debug] Reloading playlist
[16:48:13.201388][cli][debug] Pre-buffering 8192 bytes
[16:48:13.433336][stream.hls][debug] First Sequence: 4580; Last Sequence: 4593
[16:48:13.433336][stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 4591; End Sequence: None
[16:48:13.434338][stream.hls][debug] Adding segment 4591 to queue
[16:48:13.434338][stream.hls][debug] Adding segment 4592 to queue
[16:48:13.435339][stream.hls][debug] Adding segment 4593 to queue
[16:48:13.912137][stream.hls][debug] Writing segment 4591 to output
[16:48:13.914140][stream.hls][debug] Segment 4591 complete
[16:48:13.915141][cli.output][debug] Opening subprocess: "C:\Program Files (x86)\mpv\mpv.exe" --force-media-title=twitch.tv/symfuhny -
[16:48:13.995268][stream.hls][debug] Writing segment 4592 to output
[16:48:13.998271][stream.hls][debug] Segment 4592 complete
[16:48:14.129388][stream.hls][debug] Writing segment 4593 to output
[16:48:14.132391][stream.hls][debug] Segment 4593 complete
[16:48:14.432256][cli][debug] Writing stream to output
[16:48:19.443645][stream.hls][debug] Reloading playlist
[16:48:19.623725][stream.hls][debug] Adding segment 4594 to queue
[16:48:19.623725][stream.hls][debug] Adding segment 4595 to queue
[16:48:19.624726][stream.hls][debug] Adding segment 4596 to queue
[16:48:19.624726][stream.hls][debug] Adding segment 4597 to queue
[16:48:19.625727][stream.hls][debug] Adding segment 4598 to queue
[16:48:19.625727][stream.hls][debug] Adding segment 4599 to queue
[16:48:19.756317][stream.hls][debug] Writing segment 4594 to output
[16:48:19.758319][stream.hls][debug] Segment 4594 complete
[16:48:19.840551][stream.hls][debug] Writing segment 4595 to output
[16:48:19.842552][stream.hls][debug] Segment 4595 complete
[16:48:19.895645][plugins.twitch][info] Encountered an ad segment, re-execing to retrieve a new playlist
C:\Users\name>[16:48:20.281398][cli][debug] OS: Windows 10
[16:48:20.281398][cli][debug] Python: 3.10.8
[16:48:20.282498][cli][debug] Streamlink: 5.1.2
[16:48:20.283491][cli][debug] Dependencies:
[16:48:20.284492][cli][debug] certifi: 2022.9.24
[16:48:20.285494][cli][debug] isodate: 0.6.1
[16:48:20.286494][cli][debug] lxml: 4.9.1
[16:48:20.286494][cli][debug] pycountry: 22.3.5
[16:48:20.287495][cli][debug] pycryptodome: 3.16.0
[16:48:20.287495][cli][debug] PySocks: 1.7.1
[16:48:20.288496][cli][debug] requests: 2.28.1
[16:48:20.290498][cli][debug] urllib3: 1.26.13
[16:48:20.290498][cli][debug] websocket-client: 1.4.2
[16:48:20.296502][cli][debug] Arguments:
[16:48:20.297504][cli][debug] url=twitch.tv/symfuhny
[16:48:20.298505][cli][debug] stream=['best']
[16:48:20.298505][cli][debug] --loglevel=trace
[16:48:20.298505][cli][debug] --player="C:\Program Files (x86)\mpv\mpv.exe"
[16:48:20.299505][cli][debug] --ffmpeg-ffmpeg=C:\Users\name\AppData\Local\Streamlink\ffmpeg\ffmpeg.exe
[16:48:20.299505][cli][debug] --twitch-proxy-playlist=['https://api.ttv.lol']
[16:48:20.299505][cli][debug] --twitch-reexec-on-ad=True
[16:48:20.300506][cli][info] Found matching plugin twitch for URL twitch.tv/symfuhny
[16:48:20.300506][plugins.twitch][debug] Getting live HLS streams for symfuhny
[16:48:20.301507][plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[16:48:20.301507][plugins.twitch][debug] Raw playlist proxy URL: 'https://api.ttv.lol/playlist/symfuhny.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue'
[16:48:20.334773][utils.l10n][debug] Language code: en_US
[16:48:21.606445][cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 936p60 (best)
[16:48:21.606445][cli][info] Opening stream: 936p60 (hls)
[16:48:21.607446][cli][info] Starting player: "C:\Program Files (x86)\mpv\mpv.exe"
[16:48:21.608447][stream.hls][debug] Reloading playlist
[16:48:21.608447][cli][debug] Pre-buffering 8192 bytes
[16:48:22.036320][stream.hls][debug] First Sequence: 4585; Last Sequence: 4598
[16:48:22.036320][stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 4596; End Sequence: None
[16:48:22.037322][stream.hls][debug] Adding segment 4596 to queue
[16:48:22.038323][stream.hls][debug] Adding segment 4597 to queue
[16:48:22.038323][stream.hls][debug] Adding segment 4598 to queue
[16:48:23.342669][stream.hls][debug] Writing segment 4596 to output
[16:48:23.345673][stream.hls][debug] Segment 4596 complete
[16:48:23.345673][cli.output][debug] Opening subprocess: "C:\Program Files (x86)\mpv\mpv.exe" --force-media-title=twitch.tv/symfuhny -
[16:48:23.576672][stream.hls][debug] Writing segment 4597 to output
[16:48:23.579674][stream.hls][debug] Segment 4597 complete
[16:48:23.733033][stream.hls][debug] Writing segment 4598 to output
[16:48:23.735034][stream.hls][debug] Segment 4598 complete
[16:48:23.850652][cli][debug] Writing stream to output
[16:48:28.052079][stream.hls][debug] Reloading playlist
[16:48:28.533535][stream.hls][debug] Adding segment 4599 to queue
[16:48:28.533535][stream.hls][debug] Adding segment 4600 to queue
[16:48:28.535537][stream.hls][debug] Adding segment 4601 to queue
[16:48:28.687455][stream.hls][debug] Writing segment 4599 to output
[16:48:28.690458][stream.hls][debug] Segment 4599 complete
[16:48:28.843906][stream.hls][debug] Writing segment 4600 to output
[16:48:28.846909][stream.hls][debug] Segment 4600 complete
[16:48:29.001512][stream.hls][debug] Writing segment 4601 to output
[16:48:29.003726][stream.hls][debug] Segment 4601 complete
[16:48:31.656137][cli][info] Player closed
[16:48:31.656137][stream.segmented][debug] Closing worker thread
[16:48:31.657137][stream.segmented][debug] Closing writer thread
[16:48:31.657137][stream.segmented][debug] Closing writer thread
[16:48:31.658138][cli][info] Stream ended
[16:48:31.658138][cli][info] Closing currently open stream...

My GUI Log launching mpv looks something like this:

[2023-03-23T17:15:41.710Z][debug][StreamingService]
Spawning process
{
"exec": "C:\Users\name\AppData\Local\Streamlink\bin\streamlinkw.exe",
"params": [
"--twitch-proxy-playlist=https://api.ttv.lol",
"--twitch-reexec-on-ad",
"--twitch-low-latency",
"--player",
"C:\Program Files (x86)\mpv\mpv.exe",
"--player-args",
"--profile=StreamProfile --script-opts=osc-visibility=never --keep-open=no "--title=$>Tfue - Fortnite - 30 Kill Solo Attempts into Speedfue" "--force-media-title=Tfue - Fortnite - 30 Kill Solo Attempts into Speedfue" --force-window=yes --force-seekable=yes --hr-seek=yes --hr-seek-framedrop=yes --cache=no",
"--hls-live-edge",
"1",
"--stream-segment-threads",
"1",
"--retry-open",
"1",
"--retry-streams",
"1",
"twitch.tv/tfue",
"best"
],
"env": null
}

If I'm doing something wrong or it's not intended to be used with Streamlink Twitch GUI then I apologise.

TTVLOL server is down

Version 6.0.0-20230720, Using --twitch-ttvlol I get the error:

[plugins.twitch][info] streamlink-ttvlol d70fe487-master
[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/lirik
[plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[plugins.twitch][error] Unable to open URL: https://api.ttv.lol/playlist/lirik.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue (523 Server Error: for url: https://api.ttv.lol/playlist/lirik.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/lirik


Using other arguments ends up with errors too

I get a error with the latest version

@2bc4 I get this error: [plugins.twitch][info] streamlink-ttvlol d314c5b8-master
[plugins.twitch][info] Please report issues to https://github.com/2bc4/streamlin
k-ttvlol/issues
[cli][info] Found matching plugin twitch for URL twitch.tv/mira
[plugins.twitch][info] Using playlist proxy 'https://eu.luminous.dev'
[plugins.twitch][error] Unable to open URL: https://eu.luminous.dev/live/mira?pl
ayer=twitchweb&type=any&allow_source=true&allow_audio_only=true&allow_spectre=fa
lse&fast_bread=true (request() got an unexpected keyword argument 'keywords')
error: No playable streams found on this URL: twitch.tv/mira

With the version Fix plugin args not being passed

--twitch-reexec-on-ad is broken with appimage

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...

Trying to play the stream without --twitch-reexec-on-ad gives me this every time:

$ ./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.

can't find '__main__' module

Hi, I've loaded the script to roaming\streamlin\plugins\ and run streamlink from a batch file, when an ad start, it stop the stream and shows the following:

streamlink "twitch.tv/whatever" --twitch-reexec-on-ad

[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 twitch.tv/whatever
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p_alt, 480p (best)
[cli][info] Opening stream: 480p (hls)
[cli][info] Starting player: "C:\PROGRA~1\MPC-HC\mpc-hc64.exe"
[plugins.twitch][info] Encountered an ad segment, re-execing to retrieve a new playlist

C:\Program Files\python\python.exe: can't find '__main__' module in 'C:\\Program Files\\Python\\Scripts\\streamlink'

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.