Closed drag0n141 closed 1 year ago
Hey, can you provide the exact twitch-proxy-playlist argument you're using? Note that it only falls back if the request fails entirely, not on ads or anything else (although that would be nice to have).
This is my config file for Streamlink.
#Log
logfile=/config/twitch.log
loglevel=info
#Output Folder
output=/mnt/downloads/twitch/{author}/{author} - {time:%Y%m%d_%H-%M} - {id} - {title}.ts
#Safe Filenames
fs-safe-rules=Windows
#Force Overwrite
force
#Default Quality
default-stream=best
#Ignore Host
twitch-disable-hosting
#Ignore Reruns
twitch-disable-reruns
#Ignore Ads
twitch-disable-ads
#Luminous-TTV
twitch-proxy-playlist=http://localhost:9595,https://api.ttv.lol
twitch-proxy-playlist-fallback
#Add Header
twitch-api-header=Client-ID=ue6666qo983tsx6so1t0vnawi233wa
http-header=Client-ID=ue6666qo983tsx6so1t0vnawi233wa
#Retry
retry-max=10
retry-streams=1
retry-open=5
#Ringbuffer
ringbuffer-size=128M
#Stream Segments
stream-segment-attempts=10
stream-segment-timeout=120
stream-segment-threads=5
#Stream Timeout
stream-timeout=120
#HLS Settings
hls-live-edge=99999
If you set loglevel=trace
does the log file contain anything of note?
I couldn't reproduce. I used your config with nothing listening on port 9595 and it falls back to ttvlol:
[session][debug] Plugin twitch is being overridden by /home/REDACTED/.local/share/streamlink/plugins/twitch.py
[cli][debug] OS: Linux-6.3.7
[cli][debug] Python: 3.11.4
[cli][debug] Streamlink: 5.5.1+46.g3fcf6d6c.dirty
[cli][debug] Dependencies:
[cli][debug] certifi: 3021.3.16
[cli][debug] isodate: 0.6.1
[cli][debug] lxml: 4.9.2
[cli][debug] pycountry: 22.3.5
[cli][debug] pycryptodome: 3.18.0
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.31.0
[cli][debug] urllib3: 2.0.3
[cli][debug] websocket-client: 1.5.3
[cli][debug] Arguments:
[cli][debug] url=twitch.tv/REDACTED
[cli][debug] --loglevel=trace
[cli][debug] --logfile=/config/twitch.log
[cli][debug] --player=mpv
[cli][debug] --output=/mnt/downloads/twitch/{author}/{author} - {time:%Y%m%d_%H-%M} - {id} - {title}.ts
[cli][debug] --fs-safe-rules=Windows
[cli][debug] --force=True
[cli][debug] --default-stream=['best']
[cli][debug] --retry-streams=1.0
[cli][debug] --retry-max=10
[cli][debug] --retry-open=5
[cli][debug] --ringbuffer-size=134217728
[cli][debug] --stream-segment-attempts=10
[cli][debug] --stream-segment-threads=5
[cli][debug] --stream-segment-timeout=120.0
[cli][debug] --stream-timeout=120.0
[cli][debug] --hls-live-edge=99999
[cli][debug] --http-header=[('Client-ID', 'ue6666qo983tsx6so1t0vnawi233wa')]
[cli][debug] --twitch-disable-ads=True
[cli][debug] --twitch-disable-hosting=True
[cli][debug] --twitch-disable-reruns=True
[cli][debug] --twitch-api-header=[('Client-ID', 'ue6666qo983tsx6so1t0vnawi233wa')]
[cli][debug] --twitch-proxy-playlist=['http://localhost:9595', 'https://api.ttv.lol']
[cli][debug] --twitch-proxy-playlist-fallback=True
[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/REDACTED
[plugins.twitch][debug] Getting live HLS streams for REDACTED
[plugins.twitch][info] Using playlist proxy 'http://localhost:9595'
[plugins.twitch][debug] Raw playlist proxy URL: 'http://localhost:9595/playlist/REDACTED.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
[plugins.twitch][error] Unable to open URL: http://localhost:9595/playlist/REDACTED.m3u8%3Fplayer%3Dtwitchweb%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/REDACTED.m3u8%3Fplayer%3Dtwitchweb%26type%3Dany%26allow_source%3Dtrue%26allow_audio_only%3Dtrue%26allow_spectre%3Dfalse%26fast_bread%3Dtrue (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x780dc34600d0>: Failed to establish a new connection: [Errno 111] Connection refused')))
[plugins.twitch][info] Using playlist proxy 'https://api.ttv.lol'
[plugins.twitch][debug] Raw playlist proxy URL: 'https://api.ttv.lol/playlist/REDACTED.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] Writing output to
/mnt/downloads/twitch/REDACTED/REDACTED.ts
[cli][debug] Checking file output
[plugins.twitch][info] Will skip ad segments
[stream.hls][debug] Reloading playlist
[cli][debug] Pre-buffering 8192 bytes
Closing due to inactivity.
Hi,
I am using twitch-proxy-playlist with two proxy's as comma list. And with the fallback option. But it does not switch to the next is the list and it does not fallback.