Decrypt and download HLS playlist(m3u8) of avgle.com video in browser.
[May 7, 2021]
AdGuard Japanese filter prevents the CAPTCHA dialog from appearing on avgle.com, resulting in the video not playing.
If necessary, please add the following filter to [My Filters] to show CAPTCHA dialog.
avgle.com#@#body > div[style*="z-index"]:not([id]):not([class])
[Oct. 19, 2020]
uBlock Origin default filter is blocking the third party scripts on avgle.com.
If necessary, please add the following filter to [My Filters] to allow access to my script.
@@||avotoko.github.io/avgle-HLS-playlist-downloader/avgle-hls-playlist-downloader.js$script,domain=avgle.com
- Bookmarklet and usage is posted on my blog. https://avotoko.blogspot.com/2020/04/avgle-hls-playlist-downloader.html
- Tested on firefox + ublock origin.
- Open the video page in browser.
- Run avgle-hls-playlist-downloader.js (as bookmarklet.)
ref. Run avgleHPD using Greasemonkey. - Click close button overlapping the video. In March 2022 uBO hides the close button. In that case, click play button.
- [Download HLS Playlist] button will appear when the playlist is successfully retrieved and decrypted.
- Click the button and download avgle.m3u8.
- You can play the video using Streamlink.
streamlink --http-header Referer=https://avgle.com/ file://<location>/avgle.m3u8 best
Or you can download the video.
streamlink --http-header Referer=https://avgle.com/ file://<location>/avgle.m3u8 best -o video.ts
- The url described in the playlist(m3u8 file) retrieved by AvgleHPD becomes inaccessible after a while.
Try to run Streamlink as soon as possible after retrieving the playlist. - You must specify the url instead of the local path of m3u8 file.
How to convert local path to url: https://en.wikipedia.org/wiki/File_URI_scheme
[Example for Windows]
downloaded file path: c:\temp\avgle.m3u8
url: file:///c:/temp/avgle.m3u8
command line:
streamlink --http-header referer=https://avgle.com/ file:///c:/temp/avgle.m3u8 best
- The url described in the playlist(m3u8 file) retrieved by AvgleHPD becomes inaccessible after a while.
- Outputs errors and other information to the console of the browser's developer tools.
You can define the function avglehpdPreDownload
separately to change the file name to be downloaded.