Last active
January 26, 2024 14:22
-
-
Save hym3242/921f910cfd430d8a6492b72a8ddda05f to your computer and use it in GitHub Desktop.
Generate direct m3u8 url from a url to americanarchive.org catalog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash$ type genaapbplayurl | |
genaapbplayurl is a function | |
genaapbplayurl () | |
{ | |
curl -si "https://americanarchive.org/media/$(basename "$1")" -H "Referer: https://americanarchive.org/catalog/$(basename "$1")" --compressed | grep '^Location:' | cut -d ' ' -f 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment