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

Skip to content

plugins.aloula: add HTTP headers, update matchers#5792

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:plugins/aloula/5791
Jan 21, 2024
Merged

plugins.aloula: add HTTP headers, update matchers#5792
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:plugins/aloula/5791

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

Fixes #5791

$ ./script/test-plugin-urls.py aloula
:: Finding streams for URL: https://www.aloula.sa/en/episode/6676
:::: This stream requires a login; specify appropriate Authorization and profile HTTP headers
!! No streams found
:: Finding streams for URL: https://www.aloula.sa/en/live/saudiatv
:: Found streams: 360p, 480p, 1080p, worst, best
:: Finding streams for URL: https://www.aloula.sa/episode/6676
:::: This stream requires a login; specify appropriate Authorization and profile HTTP headers
!! No streams found
:: Finding streams for URL: https://www.aloula.sa/live/saudiatv
:: Found streams: 360p, 480p, 1080p, worst, best

@bastimeyer bastimeyer added the plugin issue A Plugin does not work correctly label Jan 21, 2024
@bastimeyer

bastimeyer commented Jan 21, 2024

Copy link
Copy Markdown
Member Author

Btw, @andaluspc, if you're just getting the HLS playlist URL using --stream-url, then you have to set the Origin and Referer headers manually.

Regular playback via Streamlink works fine.

@bastimeyer bastimeyer merged commit 38e2fb1 into streamlink:master Jan 21, 2024
@bastimeyer bastimeyer deleted the plugins/aloula/5791 branch January 21, 2024 15:01
@andaluspc

andaluspc commented Jan 22, 2024

Copy link
Copy Markdown

Hello @bastimeyer . Thank you.
I use streamlink to get the m3u8 URL then I store it in my m3u8 playlist which is being played by my TV application.
Would there be a way to pass Origin and Referer headers in in my m3u8 in EXTINF tag (or any other tag)? I can't find a supportive documentation about if this can be done. I hope I am not at a dead end!

@bastimeyer

Copy link
Copy Markdown
Member Author

This is not how any of this works. The application which sends the HTTP requests to the HLS playlist/segment URLs has to set those headers. If you're using Streamlink to just resolve the HLS playlist URL without using its own HLS download logic, then you're on your own. Good luck.

@andaluspc

Copy link
Copy Markdown

Ya.. it seems so. but it is a good challenge so I start providing a solution for such issues :)
Thank you again Sebastian. Appreciate all your support so far.

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.aloula: 403 Client Error: Forbidden for url

2 participants