Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

bastimeyer
Copy link
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
Copy link
Member Author

bastimeyer commented Jan 21, 2024

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
Copy link

andaluspc commented Jan 22, 2024

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
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

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