Skip to content
Browse files

Merge pull request #2 from celeduc/master

Updating to match a scheme change in the RTMP URL used by MySpace
  • Loading branch information...
2 parents 92bf67e + 4b9dd1b commit 97dc835c5b530200ae7e04418247e20f43f8dbb8 @lukapusic committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 myspace-dl.sh
View
2 myspace-dl.sh
@@ -54,7 +54,7 @@ do
link="http://www.myspace.com/music/player?sid=$songid"
songpage=`wget -L "$link" --quiet --user-agent="Mozilla" -O -`
title=`echo "$songpage" | grep 'class="song"' | sed -e 's/.*class="song" title="//' -e 's/".*//' | head -n 1`
- rtmp=`echo "$songpage" | grep "rtmp://" | tr "," "\n" | grep 'rtmp://' | cut -d '"' -f 4 | head -n 1`
+ rtmp=`echo "$songpage" | grep "rtmpte://" | tr "," "\n" | grep 'rtmpte://' | cut -d '"' -f 4 | head -n 1`
player=`echo "$songpage" | grep 'PixelPlayerUrl' | sed -e 's/.*{PixelPlayerUrl":"//' -e 's/".*//' | head -n 1`
if [ ! "$title" ]; then
title="$i" #use number if no title found

0 comments on commit 97dc835

Please sign in to comment.
Something went wrong with that request. Please try again.