2bc4 / streamlink-ttvlol

Streamlink Twitch plugin modified to work with the TTV.LOL API
BSD 2-Clause "Simplified" License
180 stars 6 forks source link

Add generic URL handling system for servers that don't support the TTVLOL API #30

Closed 2bc4 closed 1 year ago

2bc4 commented 1 year ago

Instead of supporting each API individually allow passing a custom URL. If the URL includes "[channel]" it will be replaced with the real channel name similar to the Xtra app, otherwise defaults to the TTVLOL API. It should work as long as the API doesn't require something like a custom header or URL encoding (TTVLOL).

Tested with Purple Adblock: --twitch-proxy-playlist="https://eu1.jupter.ga/channel/[channel]" and luminous native API: --twitch-proxy-playlist="https://eu.luminous.dev/live/[channel]"

2bc4 commented 1 year ago

@thinkpad4 Would it be possible to test if the config works in this version? It does on my end but I want to rule out differences between setups.

{channel} was changed to [channel]

twitch-proxy-playlist=https://eu1.jupter.ga/channel/[channel]
thinkpad4 commented 1 year ago

Tested the new version of twitch.py and purple works with config now. Thank you very much