Skip to content
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

Add http headers #4

Open
purplescorpion1 opened this issue Jul 8, 2024 · 3 comments
Open

Add http headers #4

purplescorpion1 opened this issue Jul 8, 2024 · 3 comments

Comments

@purplescorpion1
Copy link

There needs to be a box to add in http headers such as
#EXTVLCOPT:http-referrer=
#EXTVLCOPT:http-user-agent=

@imrsaleh
Copy link
Owner

imrsaleh commented Oct 3, 2024

try adding it at the end of .m3u8/.mpd using |Referrer="http://example.com/"

for example:
https://live-hls-web-aja-fa.getaj.net/AJA/index.m3u8|Referer="http://example.com/"&user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"

@purplescorpion1
Copy link
Author

purplescorpion1 commented Oct 3, 2024

m3u files don't work like that

You need to pass headers like this (for vlc or clients that support extvlcopt)
Other players you would need to inject using something like mitmproxy or other methods. Not via the stream link itself

#EXTM3U
#EXTINF:-1 tvg-name="channel" tvg-id="epgforchannel" tvg-logo="https://domain.com/logo.png" group-title="channelgroup",channel name
#EXTVLCOPT:http-referrer=https://domain.com
#EXTVLCOPT:http-user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
https://domain.com/streamlink.m3u8

@imrsaleh
Copy link
Owner

imrsaleh commented Oct 7, 2024

m3u files don't work like that

You need to pass headers like this (for vlc or clients that support extvlcopt) Other players you would need to inject using something like mitmproxy or other methods. Not via the stream link itself

#EXTM3U
#EXTINF:-1 tvg-name="channel" tvg-id="epgforchannel" tvg-logo="https://domain.com/logo.png" group-title="channelgroup",channel name
#EXTVLCOPT:http-referrer=https://domain.com
#EXTVLCOPT:http-user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
https://domain.com/streamlink.m3u8

Yes you are right "vlc" doesn't support that, but it works using "tivimate/ott navigator"
Stay tuned for the latest updates and thanks for your suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants