cbagger01
Group: Members
Posts: 4264
Joined: Oct. 2003 |
|
Posted: Dec. 03 2004,05:35 |
|
Here is a small script that can be used to play *.pls files in DSL version 0.9
Copy and paste the text below into mp or pw and save as a text file, following the included instructions. Hope this helps.
Code Sample | #!/bin/bash # # playpls Decodes the first stream in a PLS file and # plays it via the mpg321 command line mp3 # player. Code shamelessly stolen from a # script in the streamripper.sourceforge.net # forums. # # Save this script as a text file # named playpls and then type: # chmod 755 playpls # # To use type: # ./playpls plsfilename.pls # or associate it to .pls filetype in your # web browser settings. # # To stop the music from playing, open an # xterminal window and type: # killall -9 mpg321
plsf="$1" url="`cat "$plsf"|grep File1|cut '-d=' -f2`" mpg321 $url exit
|
|