Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Programming & Scripting
Reload this Page Launch Yahoo Music Videos Script
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Programming & Scripting C, Perl, PHP, Bash Scripts, anything programming or script related post in here!

Reply
 
Thread Tools Display Modes
Old 03-19-2005   #1 (permalink)
alancooney
Linux Newbie
 
Join Date: Feb 2005
Location: England
Posts: 123
Send a message via MSN to alancooney Send a message via Yahoo to alancooney
Launch Yahoo Music Videos Script

Hi, I have found the script that will suposedly let you watch music videos from www.launch.yahoo.com , but I have no idea where I have to enter it to make it work. Do I put it in a text editor, and if so what extension do I give it. Please also check the script below 2 see if it will work:

Code:
#!/bin/bash

if [ $# -eq 0 ]; then
echo "Usage: launch.sh <videoid> (<bandwidth>) (<protocol>) <mplayer-options>"
echo " videoid = Lauch Video ID"
echo " bandwidth = 56,128,300 (default 300)"
echo " protocol = mms,http (default mms)"
echo " mplayer options can be passed via command line"
echo "Example:"
echo " MMS:"
echo " launch.sh 1112809 300 mms"
echo " HTTP:"
echo " launch.sh 1112809 300 http"
echo " HTTP with mplayer options:"
echo " launch.sh 1112809 300 http -verbose 0 -cache 500"
exit 0
fi

videoid=$1
shift

if [ $1 -eq $1 ] && [ $1 != 0 ]; then
bandwidth=$1
shift
else
# 56 or 128 or 300
bandwidth=300
fi

file1=$(wget "http://launchtoday.launch.yahoo.com/player/medialog.asp?vid=$videoid&cid=1&pid=4&csid=396500550&p1=&p2=&p3=2&bw=$bandwidth&mf=1&origin=35&pguid=AA388C059C7849D99CCFBC72B6F51E37&uid=42&sk=bad551cd352143eb2da02&z=ms.asx" -q -O -)

if [ $1 == "http" ]; then
file2=$(wget "$file1" -q -O - | sed 's/mms:/http:/g')
shift
else
file2=$(wget "$file1" -q -O -)
fi

mplayer -cache 500 $file2 $@
I am a complete newb as u hav probably guessed so dnt expect any scripting experience. Thanks in advance, Alan
alancooney is offline   Reply With Quote
Old 03-19-2005   #2 (permalink)
Santa's little helper
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
Yes , you put it in a text editor and you save it.It doesn't matter what extension you give it or if you give it any extension at all.Just give it a name which will remind you what it does.

The quickest way to see if it works is to actually run it.
Santa's little helper is offline   Reply With Quote
Old 03-21-2005   #3 (permalink)
alancooney
Linux Newbie
 
Join Date: Feb 2005
Location: England
Posts: 123
Send a message via MSN to alancooney Send a message via Yahoo to alancooney
script failed

Thanks, I ran it but it didnt open the music video, instead it gave me this message:

Code:
Usage: launch.sh <videoid> (<bandwidth>) (<protocol>) <mplayer-options>
 videoid = Lauch Video ID
 bandwidth = 56,128,300 (default 300)
 protocol = mms,http (default mms)
 mplayer options can be passed via command line
Example:
 MMS:
 launch.sh 1112809 300 mms
 HTTP:
 launch.sh 1112809 300 http
 HTTP with mplayer options:
 launch.sh 1112809 300 http -verbose 0 -cache 500
Any suggestions on what I could do to make it work, thanks, Alan
alancooney is offline   Reply With Quote
Old 03-21-2005   #4 (permalink)
Santa's little helper
Linux Enthusiast
 
Join Date: Jan 2005
Posts: 575
Can you type exactly what you typed to run it ?
Santa's little helper is offline   Reply With Quote
Old 04-21-2005   #5 (permalink)
fitzrik
Just Joined!
 
Join Date: Apr 2005
Posts: 2
Launch videos

I don't understand why yahoo are being so pigheaded about restricting their video access.

Anyway this script worked fine for me.

save script eg. as launch.sh
go to directory where you saved it and make it executable

chmod 0755 launch.sh

and then run it with appropriate video id(this you can get by hovering over the link in yahoo)

./launch.sh 17974865

Happy viewing!!
fitzrik is offline   Reply With Quote
Old 05-11-2005   #6 (permalink)
tmkt
Just Joined!
 
Join Date: May 2005
Posts: 1
http://blog.statway.com/2005/03/29/greasemonkey-scripts
tmkt is offline   Reply With Quote
Old 06-21-2005   #7 (permalink)
strix
Just Joined!
 
Join Date: Jun 2005
Posts: 1
launch music videos

I've got a script on my website that might help if you're not able to get the videos to play at the launch site in your browser, launch ad remover at:

http://www.strix.org.uk/misc/launch.yahoo/

Good Luck
strix is offline   Reply With Quote
Old 06-21-2005   #8 (permalink)
Muser
Linux User
 
Muser's Avatar
 
Join Date: May 2004
Location: Maryland
Posts: 363
Send a message via AIM to Muser
Much better:

http://www.pooyak.com/p/pklaunch/

Get GreaseMonkey first then this.
Muser is offline   Reply With Quote
Old 07-01-2005   #9 (permalink)
Lengths
Just Joined!
 
Join Date: Jul 2005
Posts: 1
Am i doign something wrong?

Was very interested by this conversation because i often have to boot in to windoze mode for vids (i often just leave my computer running music videos as i dont have a TV) .

I have installed greesmonkey and have the little monkey sign at the bottom of my screen, but when i try to run the video it stills ays you need netscape 4x (or what ever it is) ...

Have i done something wrong?
Lengths is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 11:18 PM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0