workaround for streaming ID3 Titles in WinAmp

Having problems installing or using kPlaylist.

workaround for streaming ID3 Titles in WinAmp

Postby Guest » Thu May 19, 2005 1:42 pm

Streaming ID3 inf with iTunes is not a problem but WinAmp has bug and therefor only the filename is show, see http://kplaylist.net/forum/viewtopic.ph ... 88804274b1

I have done a very easy workaround that doesn´t effect using iTunes but show id3 inf with WinAmp

add this row to Class file2, function investigate

Code: Select all
$this->id3inf = '('.$this->origrow['track'].') '.$this->origrow['artist'].' - '.$this->origrow['title'].' - '.$this->origrow['album'];


this will show (track) - artist - title - album (if u want u can skip track and album, standard look in WinAmp)

in function Kplay_senduser2 replace

Code: Select all
   header('Content-Disposition: filename='.$f2->fname);

with

Code: Select all
   header('Content-Disposition: filename='.$f2->id3inf);


Comments?
Guest
 

Postby Robert Smith » Thu May 19, 2005 1:43 pm

dm i forgot to login... why dosen´t automatic login works on this board???
Robert Smith
 
Posts: 87
Joined: Tue May 03, 2005 12:52 pm
Location: Stockholm, swe

Postby Thoz » Sun May 22, 2005 4:07 am

Thanks! What worked best for me (as you suggested) is to just add this code to Class file2:

$this->id3inf = ''.$this->origrow['artist'].' - '.$this->origrow['title'];

Because the track and album were empty
Thoz
 

Postby aba » Wed May 25, 2005 1:19 pm

Robert Smith wrote:dm i forgot to login... why dosen´t automatic login works on this board???


The session and automatic login has been working after the latest upgrade to 2.0.15, right? :)

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby Robert Smith » Wed May 25, 2005 4:44 pm

Yeap :lol:
Robert Smith
 
Posts: 87
Joined: Tue May 03, 2005 12:52 pm
Location: Stockholm, swe

Re: workaround for streaming ID3 Titles in WinAmp

Postby aba » Fri May 27, 2005 12:20 pm

Anonymous wrote:Streaming ID3 inf with iTunes is not a problem but WinAmp has bug and therefor only the filename is show, see http://kplaylist.net/forum/viewtopic.ph ... 88804274b1

I have done a very easy workaround that doesn´t effect using iTunes but show id3 inf with WinAmp


I've added a function called 'gentitle' in the file2 class, which does the same thing, excepts that it has exceptions if the fields are empty or does not exist.

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby Robert Smith » Fri May 27, 2005 12:33 pm

Great Åge,

Since i´m not a professional like u guys. i hope it´s ok to post my suggestion and if u find them ok u can decide to implement them or not (insteed of that i make changes to the main script).
Robert Smith
 
Posts: 87
Joined: Tue May 03, 2005 12:52 pm
Location: Stockholm, swe


Return to Community support



cron