Тема: twitch
Задача получить прямую ссылку с трансляции на twitch.
Для примера берем трансляцию
https://m.twitch.tv/disguisedtoast
Конечная ссылка, которая работает
https://usher.ttvnw.net/api/channel/hls/disguisedtoast.m3u8?player_type=pulsar&player_backend=mediaplayer&playlist_include_framerate=true&allow_source=true&token=%7B%22adblock%22%3Afalse%2C%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22blackout_enabled%22%3Afalse%2C%22channel%22%3A%22disguisedtoast%22%2C%22channel_id%22%3A87204022%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%2C%22view_until%22%3A1924905600%7D%2C%22ci_gb%22%3Afalse%2C%22geoblock_reason%22%3A%22%22%2C%22device_id%22%3A%229676b21ee3c535f0%22%2C%22expires%22%3A1660368783%2C%22extended_history_allowed%22%3Afalse%2C%22game%22%3A%22%22%2C%22hide_ads%22%3Afalse%2C%22https_required%22%3Atrue%2C%22mature%22%3Afalse%2C%22partner%22%3Afalse%2C%22platform%22%3A%22mobile_web%22%2C%22player_type%22%3A%22pulsar%22%2C%22private%22%3A%7B%22allowed_to_view%22%3Atrue%7D%2C%22privileged%22%3Afalse%2C%22role%22%3A%22%22%2C%22server_ads%22%3Atrue%2C%22show_ads%22%3Atrue%2C%22subscriber%22%3Afalse%2C%22turbo%22%3Afalse%2C%22user_id%22%3Anull%2C%22user_ip%22%3A%2246.72.172.195%22%2C%22version%22%3A2%7D&sig=c6a58a1ea5f7a1a3d71650cefe565c38a003fc1e&cdm=wv&player_version=1.11.0
Пока, что не вижу, откуда ее извлекать?
Качество там будет автоматом подбираться с худшего к максимальному.