Not logged in. · Lost password · Register
Forum: General discussion RSS
Playlist in browser is ALWAYS empty
uhmm ? ^ ^  ...  O_o
Avatar
FeL0niOuS.mOnK #1
Member since Mar 2004 · 10 posts · Location: Cincinnati, OH
Group memberships: Members
Show profile · Link to this post
so I'm not sure if this is just me, coz I haven't seen it on any other posts .. or even mentioned,

but when I goto my browseAmp page, It shows a zero length playlist ... I've figured this is because my playlist always has over 3000 songs in it .. but it doesnt work even if I have 20 :-/

I've used browseAmp in multiple locations with fewer songs than that in the playlists and still get the same result ...

everything else works perfectly ..  i just can't see the current playlist :-/

any ideas / explanations / workarounds?
~joe brockhaus
~tH3 FeL0niOuS mOnK
".:: lE3T nINjA bL!nK3r eNabLeD :.."
[img]http://www.uc.edu/~brockhjd/images/joe_cs.png[/img]
The author has attached one file to this post:
example.jpg 79.7 kBytes
You have no permission to open this file.
Avatar
Azimuth #2
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
Interesting. Never saw that one. What version of Winamp?
Avatar
FeL0niOuS.mOnK #3
Member since Mar 2004 · 10 posts · Location: Cincinnati, OH
Group memberships: Members
Show profile · Link to this post
it happened on every version of winamp2 i used .. and now i'm on winamp5 .. same stuff ..
~joe brockhaus
~tH3 FeL0niOuS mOnK
".:: lE3T nINjA bL!nK3r eNabLeD :.."
[img]http://www.uc.edu/~brockhjd/images/joe_cs.png[/img]
Avatar
Henry (Administrator) #4
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Have you tried an other webbrowser or maybe an other skin? I'm sure you did but I have no other idea what to say...  :(
Guest (Guest) #5
No profile available.
Link to this post
lol thats ok .. yah I have .. I'm not sure what  / why its actin like that ..

but like i said before I've grown accustoemd to not using it .. my playlist is typically just easy access to my harddrive full of mp3's .. so if i wanna paly something i just navigate and play from there ;_)
FeL0niOuS mOnK (Guest) #6
No profile available.
Link to this post
could it be just because my winamp playlist has so many songs that the loop to display all the titles buffers out?

i'll just bein lazy and take a papa smurf look at the source ... just C++ right ?
Avatar
Henry (Administrator) #7
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I have just tried a 5358 track playlist. No problem at all!

C++ is correct but what code do you want to look at? This one?
int __fastcall TBrowseAmp::ReadPlaylist(void)
{
 TStringList *Lines = new TStringList;
 AnsiString tmp,tmp2,Song;
 long Length;
 PPlaylistClass Item;

 for(int x=0; x< Playlist->Count; x++)
    delete (PPlaylistClass(Playlist->Items[x]));
 Playlist->Clear();


 Player->SavePlaylist();
 ReadFile(Player->PlayerDirectory+"\\winamp.m3u", Lines);


    for(int x=1; x < Lines->Count; x++)
        {
        Item = new TPlaylistClass;
        Item->Name = Item->Title = Item->Artist = Item->FileName = "";
        Item->Length = 0;
        tmp = Lines->Strings[x];
        if( tmp.AnsiPos("#EXTINF:"))
            {
            Item->Name = tmp.SubString(tmp.Pos(",")+1, tmp.Length() - tmp.Pos(","));
            Item->Length = MAX(StrToIntDef(tmp.SubString(9, tmp.Pos(",") - 9),0),0);
            Item->FileName = Lines->Strings[x+1];
            x++;
            }
        else
            {
            Item->FileName = Lines->Strings[x];
            tmp = Lines->Strings[x].SubString(Lines->Strings[x].LastDelimiter("\\")+1,Lines->Strings[x].Length()-Lines->Strings[x].LastDelimiter("\\")+1);
            Item->Name = tmp.SubString(1,tmp.LastDelimiter(".")-1);
            Item->Length = 0;
            }
        Playlist->Add(Item);
        }
 delete Lines;
 return(Playlist->Count);
 }


Because the winamp API sucks much there is no way to read the playlist directly via "memory". So I make Winamp save the current playlist and parse that file. Maybe that is the problem. Does Winamp save the playlist correctly?
This post was edited on 2004-03-03, 17:23 by Unknown user.
Avatar
FeL0niOuS.mOnK #8
Member since Mar 2004 · 10 posts · Location: Cincinnati, OH
Group memberships: Members
Show profile · Link to this post
actually I was thinkin of just seein how you did what you did .. just  out of curiousity .. and this gave me a target to start lookin: the point of entry into the maze maybe .. lol

io'll check on the playlist save when i get home .. that could be it
~joe brockhaus
~tH3 FeL0niOuS mOnK
".:: lE3T nINjA bL!nK3r eNabLeD :.."
[img]http://www.uc.edu/~brockhjd/images/joe_cs.png[/img]
Avatar
FeL0niOuS.mOnK #9
Member since Mar 2004 · 10 posts · Location: Cincinnati, OH
Group memberships: Members
Show profile · Link to this post
oh .. nvm the source thing .. I thought u had the source out there .. meep!
~joe brockhaus
~tH3 FeL0niOuS mOnK
".:: lE3T nINjA bL!nK3r eNabLeD :.."
[img]http://www.uc.edu/~brockhjd/images/joe_cs.png[/img]
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 236.1 ms (125.1 ms) · 73 database queries in 89.7 ms
Current time: 2018-02-25, 21:14:43 (UTC +00:00)