alxhotel / chromecast-api

:tv: Chromecast Node.js module
MIT License
155 stars 49 forks source link

Is there a way to add Referrer when request m3u8? #91

Open DarckBlezzer opened 3 weeks ago

DarckBlezzer commented 3 weeks ago

There is a website that require Referrer in the header to access the videos (m3u8)

I can do it with vlc

Example: vlc --http-user-agent="Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36" --http-referrer="https://custom_website.net/" --sout="#chromecast{ip=192.168.0.10}" :network-caching=10000 "https://custom_website.com/c1BIb2RMRXFQZzVsZVRjSlpqaVVMT01ib04yRmsvK0t0cUdjdnB4MHJhTnowQXBDbTNXcTVVZjE5dFlmdXdSNVN2OUFQTXNuMUFjZGlhL1drUzlEQlE9PQ.m3u8"

alxhotel commented 3 weeks ago

Nice feature! Feel free to open a PR