<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using a python script to control the
playlist. The playlist data is stored in a mysql table, etc
..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However, when I play a track, the data displayed on
the Icecast2 status page reflects the next track going to be
played.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After inserting a few statements into the python
script, ices outputs:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Logfile opened<BR>Executing initialize()
function..<BR>Executing get_next() function... tracknum: -1<BR>Executing
get_lineno() function... start: -1<BR>Exiting get_lineno, end: 834<BR>Error
opening No record at -1: Error opening: No such file or directory<BR>Executing
get_next() function... tracknum: 834<BR>Executing get_lineno() function...
start: 834<BR>Exiting get_lineno, end: 679<BR>Playing
/downloads/mp3s/Underworld/Underworld - Rez.mp3 // This
is track 834 in the db<BR>Executing get_metadata function - tracknum
679<BR>Mounted on <A
href="http://localhost:8000/ices">http://localhost:8000/ices</A><BR>Executing
get_metadata function - tracknum 679<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>forcing to the next track (SIGUSR1), the following
is displayed on the console:</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>Executing get_next() function... tracknum:
679<BR>Executing get_lineno() function... start: 679<BR>Exiting get_lineno, end:
848<BR>Playing /downloads/mp3s/Dave Matthews Band - Under the table and
dreaming/Dave Matthews Band - Ants marching.mp3 // track
679<BR>Executing get_metadata function - tracknum 848<BR><BR>Yet, according to
the status page, it's supposedly playing track 848</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My python script does not contain calls to other
ices functions, so I'm a bit confused why ices determines the metadata for the
next track it will play.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What am I missing?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I can send the ices.py module, or attach it to my
next post.. not sure what the etiquite<sp?> is on this list for that
kind of thing.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tim</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>