Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Description

Please tell me if a plugin can change the contents of a M3U8 file (need decode URLs for segments) before the parsing stage and subsequent loading of segments?

Problem: There is a site that uses its custom M3U8 extension (#EXT-X-MOUFLON) and therefore the URL to the segments must be decoded to download the segment.

You must be logged in to vote

There is a site that uses its custom M3U8 extension (#EXT-X-MOUFLON) and therefore the URL to the segments must be decoded to download the segment.

Create a new plugin (which you can side-load, otherwise you'll have to fork and re-build), subclass the M3U8Parser and HLSStream classes, extend your M3U8Parser subclass with the necessary tag-parsing logic and set the __parser__ classvar on your HLSStream subclass accordingly. See the Twitch plugin for reference.

However, none of these APIs are public, which means none of them are considered stable, so anything might change at any time.

You'll have to figure this out on your own though. Good luck.

Replies: 1 comment · 2 replies

Comment options

There is a site that uses its custom M3U8 extension (#EXT-X-MOUFLON) and therefore the URL to the segments must be decoded to download the segment.

Create a new plugin (which you can side-load, otherwise you'll have to fork and re-build), subclass the M3U8Parser and HLSStream classes, extend your M3U8Parser subclass with the necessary tag-parsing logic and set the __parser__ classvar on your HLSStream subclass accordingly. See the Twitch plugin for reference.

However, none of these APIs are public, which means none of them are considered stable, so anything might change at any time.

You'll have to figure this out on your own though. Good luck.

You must be logged in to vote
2 replies
@Ro-Den
Comment options

Streamlink is the best!

See the Twitch plugin for reference.

Game addicts aiding porn addicts ); it's awesome );

@picoluna1969
Comment options

Thx

Answer selected by happy777meow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.