chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 585 forks source link

Can livestreamer handle auth? #1565

Open adrianocr opened 7 years ago

adrianocr commented 7 years ago

I have the following link: http://nlds111.cdnak.neulion.com/nlds/nnn/name/as/live/name.m3u8?nltid=nnngp&nltdt=6&nltnt=1&hdnea=expires%3D1483839209%7Eaccess%3D%2Fnlds%2Fnnn%2Fname%2Fas%2Flive%2F*%7Emd5%3Df6d54b900827da8594800cb6829ea800

(Certain parts of the link changed to protect the source)

The expires part is in unix epoch time. Every link expires 5 mins after it is generated. That's the =expires part of the link. Then everything else seems to be some kind of hash + secret key.

The important thing is that if you were to take that link (before if expired) and pasted it into QuickTime player or into VLC as "open network stream" it would load up perfectly.

However, with livestreamer I don't know if it can handle the auth part of the link. I tried livestreamer "hlsvariant://http://nlds111.cdnak.neulion.com/nlds/nnn/name/as/live/name.m3u8?nltid=nnngp&nltdt=6&nltnt=1&hdnea=expires%3D1483839209%7Eaccess%3D%2Fnlds%2Fnnn%2Fname%2Fas%2Flive%2F*%7Emd5%3Df6d54b900827da8594800cb6829ea800" and it doesn't work.