Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plugins.twitch: fix stream names on usher v2#6847

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:plugins/twitch/stream-names
Mar 1, 2026
Merged

plugins.twitch: fix stream names on usher v2#6847
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:plugins/twitch/stream-names

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

Fixes #6846
See #6840

I should've been more careful in #6840, because I totally missed that no EXT-X-MEDIA tags were present, leading to media playlists not having a name property. We currently don't parse the FRAME-RATE attribute on EXT-X-STREAM-INF tags (I just realized it), so the pixels name only gets its value from the video resolution height.

Since the audio_only stream on Twitch doesn't have a RESOLUTION attribute, it's named after its stream bitrate.

In order to not introduce any changes in other plugins for now, I decided to add an override to the Twitch plugin, which artificially adds Media data to the media playlists, so the right name is chosen, which is set by Twitch itself. An override for the audio_only stream would've been needed anyway.

Now we have properly names streams/qualities on live streams. As said, I missed that in #6840 and got confused, because VODs already had the right name. The audio_only vs audio difference has always been there.

$ ./script/test-plugin-urls.py twitch -r CHANNELNAME lirik
:: https://clips.twitch.tv/GoodEndearingPassionfruitPMSTwin-QfRLYDPKlscgqt-4
::  360p30, 480p30, 720p60, 1080p60, worst, best
:: https://player.twitch.tv/?parent=twitch.tv&channel=lirik
::  audio_only, 160p, 360p, 480p, 720p60, 1080p60, worst, best
:: https://player.twitch.tv/?parent=twitch.tv&video=1963401646
::  audio, 160p, 360p, 480p, 720p, 720p60, 1080p60, worst, best
:: https://player.twitch.tv/?parent=twitch.tv&video=1963401646&t=1h23m45s
::  audio, 160p, 360p, 480p, 720p, 720p60, 1080p60, worst, best
:: https://twitch.tv/papaplatte/clip/SmellyDeadMomBloodTrail-WWr5gMxd0pe0BAge
::  360p30, 480p30, 1080p60, worst, best
:: https://www.twitch.tv/clip/GoodEndearingPassionfruitPMSTwin-QfRLYDPKlscgqt-4
::  360p30, 480p30, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/dota2ti/v/1963401646
::  audio, 160p, 360p, 480p, 720p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/dota2ti/video/1963401646
::  audio, 160p, 360p, 480p, 720p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/lirik
::  audio_only, 160p, 360p, 480p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/lirik/
::  audio_only, 160p, 360p, 480p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/lirik/?
::  audio_only, 160p, 360p, 480p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/lirik/clip/GoodEndearingPassionfruitPMSTwin-QfRLYDPKlscgqt-4
::  360p30, 480p30, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/lirik?
::  audio_only, 160p, 360p, 480p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/videos/1963401646
::  audio, 160p, 360p, 480p, 720p, 720p60, 1080p60, worst, best
:: https://www.twitch.tv/videos/1963401646?t=1h23m45s
::  audio, 160p, 360p, 480p, 720p, 720p60, 1080p60, worst, best

@bastimeyer bastimeyer added the plugin issue A Plugin does not work correctly label Mar 1, 2026
@bastimeyer bastimeyer merged commit c2d2326 into streamlink:master Mar 1, 2026
25 checks passed
@bastimeyer bastimeyer deleted the plugins/twitch/stream-names branch March 1, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin issue A Plugin does not work correctly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugins.twitch: audio_only and framerates missing

1 participant