extract m3u8 after click close / use video title as filename
options:
let discard_first_seg = false; //discard the first segment
let url_only = false; //only the video url as .txt instead of .m3u8 (for youtube-dl/uget/wget...etc)
download use streamlink
streamlink --http-header Referer=https://avgle.com/ hls://file://"C:/example.m3u8" best -o example.ts
convert
ffmpeg -i example.ts -c copy example.mp4
streamlink loacal file path use / even in windows
also you might not want use *.ts (google: windows 10 ts file freeze)
cus windows werid behavior like scan for thumbnail can make system freeze/hanging
change it to like ._ts_ .tmp so windows does't recognize it, but ffmpeg still can handle it correctly
reference:
https://github.com/download-online-video/chrome-avgle-helper/issues/21
https://github.com/download-online-video/chrome-avgle-helper/issues/54