Created
December 11, 2012 06:10
-
-
Save sinegar/4256273 to your computer and use it in GitHub Desktop.
Get arte rtmp url
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
#!/bin/sh | |
# Get the RTMP url of an arte video url | |
# based on http://blog.wirhabenstil.de/2012/01/25/downloading-arte-7-is-just-a-one-liner-in-linux/ | |
curl "$1" | grep CasPlayerXml.xml | sed "s/%2F/\//g" | cut -d"=" -f11 | grep videos | sed -e "s/\"//g" -e "s/%7B/:/g" -e "s/%3A/:/g" | xargs curl | grep \"fr\" | cut -d" " -f3 | cut -d"\"" -f2 | xargs curl | grep \"sd\" | cut -d">" -f2 | cut -d"<" -f1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment