Created
March 24, 2024 16:59
-
-
Save hym3242/5d2eb7706d4e92d0cd0b6d682de47240 to your computer and use it in GitHub Desktop.
BASH function that prints m3u8 URLs for given media object link in University of Houston Audio Video Repository
This file contains 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
avlibuheduplayurlGEN () | |
{ | |
curl "https://av.lib.uh.edu/media_objects/$(basename "$1")" | grep m3u8 | sed -n 's/.*\(https[^ ]*m3u8\).*/\1/p' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment