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 |
Quote |
error: bad argument #1 to `read' (string expected, got nil) stack traceback: 1: function `read' [C] 2: main of file `/usr/local/bin/media.flua' at line 104 |