Skip to content

Instantly share code, notes, and snippets.

@hym3242
Last active January 26, 2024 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hym3242/921f910cfd430d8a6492b72a8ddda05f to your computer and use it in GitHub Desktop.
Save hym3242/921f910cfd430d8a6492b72a8ddda05f to your computer and use it in GitHub Desktop.
Generate direct m3u8 url from a url to americanarchive.org catalog
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