Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
Question
WRITE QUESTION HERE
I want to download a hls url but need add header is user-agent and referer
i tried
youtube-dl "https://brvn-hlse-public-key.s3.ap-southeast-1.amazonaws.com/route-to-market/RTM_1-2/index.m3u8" --add-header User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.170 Safari/537.36 --add-header Referer:https://www.brandcamp.asia/myvideo/121M58291U2562H --hls-prefer-nativeIt works
but in EMBEDDING YOUTUBE-DL
It can not work, pls help me, thanh you !