Scoop -- the swiss army chainsaw of content management
Front Page Everything News Code Help! Wishlist Project Scoop Sites Dev Notes Latest CVS changes Development Activities
Scoop Box Exchange - Show Box: music 1.00

Author: b1o [Info]


Will display information about the song currently playing on XMMS. Requires xmms info pipe

Box Code:

# code used from xmms InfoPipe by Weyfor WWWWolf
# additions/modifications by b1o
# requires xmms and xmms InfoPipe

use vars qw($tune $pos $status $time $total $current);

sub htmlescape {
my $string = shift;

$string =~ s/&/&/gi;
$string =~ s/</</gi;
$string =~ s/>/>/gi;

return $string;

open(INFO,"/tmp/xmms-info") or do {
print header();

while(<INFO>) {
if(/^Status: (.*)$/)
$status = htmlescape($1);

if(/^Time: (.*)$/)
$time = htmlescape($1);

if(/^Tunes in playlist: (.*)$/)
$total = htmlescape($1);

if(/^Currently playing: (.*)$/)
$current = htmlescape($1);

if(/^Title: (.*)$/)
$tune = htmlescape($1);

if(/^Position: (.*)$/)
$pos = htmlescape($1);

close INFO;

my $content .= "$tune <br> status :: $status <br> total time :: $time <br> elapsed :: $pos <br> song :: $current of $total ";

return $content
Display: Sort:
paper writing service review (none / 0) (#1)
by TinaBrowder on Wed Mar 20, 2019 at 01:58:02 PM PST

This description box has a lot of good information that I can use in one of my paper writing service review that I am doing. I know some people might think that this is a lie I am telling, but trust me it's not a lie.

create account
report bugs
Scoop Administrators Guide
Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
It's 4:19... do you know where your bong is?

Make a new account

Hosted by Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest 1999 The Management

create account | faq | search