oopsguy / m3u8

A mini M3U8 downloader written in Golang for downloading and merging TS(Transport Stream) files. 一个迷你 M3U8 视频下载工具。
MIT License
517 stars 138 forks source link

Support cookie for downloading from restricted sources #8

Open SergeAx opened 4 years ago

wrfly commented 3 years ago

How about parsing the cookies from a file? Or adding every argument into the "task" file.

SergeAx commented 3 years ago

@wrfly , I've made a quick hack that worked for me. Original program itself is hacky enough, and to add cookie support I had to pass it via three layers of code. I am using it as a cli utility in bigger scripting setups and recommend you doing the same, e.g. handle cookie storage and scheduling yourself.