Old 24th January 2012, 09:59   #1
sabret00the
Member
 
Join Date: Feb 2006
Location: London (UK)
Posts: 50
Send a message via AIM to sabret00the
Smart Playlist Query Not working

PHP Code:
artist "Akala" OR artist "Ben Sharpa" OR artist "Black The Ripper" OR artist "Charlie Sloth" OR artist "Chester P" OR artist "Doc Brown" OR artist "Dot Rotten" OR artist "Dr Syntax" OR artist "Dubbledge" OR artist "Durrty Goodz" OR artist "Ed Sheeran" OR artist "Foreign Beggars" OR artist "Giggs" OR artist "Jamieson" OR artist "Jyager" OR artist "Kashmere" OR artist "Klashnekoff" OR artist "Kyza" OR artist "LDZ" OR artist "Loudmouth Melvin" OR artist "Lowkey" OR artist "Nine High" OR artist "Orphans Of Cush" OR artist "Micall Parknsun" OR artist "Mystro" OR artist "Percy Filth" OR artist "Ramson Badbonez" OR artist "Redbeard" OR artist "Remus" OR artist "Rhyme Asylum" OR artist "Seven" OR artist "skinnyman" OR artist "Skreintax" OR artist "Skriblah DanGogh" OR artist "Skitz" OR artist HAS "Sonnyjim" OR artist "Task Force" OR artist "Verb T" OR artist "Yungun & Mr Thing" AND rating >= 
works

PHP Code:
artist "Akala" OR artist "Ben Sharpa" OR artist "Black The Ripper" OR artist "Charlie Sloth" OR artist "Chester P" OR artist "Doc Brown" OR artist "Dot Rotten" OR artist "Dr Syntax" OR artist "Dubbledge" OR artist "Durrty Goodz" OR artist "Ed Sheeran" OR artist "Foreign Beggars" OR artist "Giggs" OR artist "Jamieson" OR artist "Jyager" OR artist "Kashmere" OR artist "Klashnekoff" OR artist "Kyza" OR artist "LDZ" OR artist "Loudmouth Melvin" OR artist "Lowkey" OR artist "Nine High" OR artist "Orphans Of Cush" OR artist "Micall Parknsun" OR artist "Mystro" OR artist "Percy Filth" OR artist "Ramson Badbonez" OR artist "Redbeard" OR artist "Remus" OR artist "Rhyme Asylum" OR artist "Seven" OR artist "skinnyman" OR artist "Skreintax" OR artist "Skriblah DanGogh" OR artist "Skitz" OR artist HAS "Sonnyjim" OR artist "Stig of the Dump" OR artist "Task Force" OR artist "Verb T" OR artist "Yungun & Mr Thing" AND rating >= 
also works

PHP Code:
(artist "Akala" OR artist "Ben Sharpa" OR artist "Black The Ripper" OR artist "Charlie Sloth" OR artist "Chester P" OR artist "Doc Brown" OR artist "Dot Rotten" OR artist "Dr Syntax" OR artist "Dubbledge" OR artist "Durrty Goodz" OR artist "Ed Sheeran" OR artist "Foreign Beggars" OR artist "Giggs" OR artist "Jamieson" OR artist "Jyager" OR artist "Kashmere" OR artist "Klashnekoff" OR artist "Kyza" OR artist "LDZ" OR artist "Loudmouth Melvin" OR artist "Lowkey" OR artist "Nine High" OR artist "Orphans Of Cush" OR artist "Micall Parknsun" OR artist "Mystro" OR artist "Percy Filth" OR artist "Ramson Badbonez" OR artist "Redbeard" OR artist "Remus" OR artist "Rhyme Asylum" OR artist "Seven" OR artist "skinnyman" OR artist "Skreintax" OR artist "Skriblah DanGogh" OR artist "Skitz" OR artist HAS "Sonnyjim" OR artist "Task Force" OR artist "Verb T" OR artist "Yungun & Mr Thing" AND rating >= 4) AND (genre HAS "hop" or genre HAS "rap"
works

PHP Code:
(artist "Akala" OR artist "Ben Sharpa" OR artist "Black The Ripper" OR artist "Charlie Sloth" OR artist "Chester P" OR artist "Doc Brown" OR artist "Dot Rotten" OR artist "Dr Syntax" OR artist "Dubbledge" OR artist "Durrty Goodz" OR artist "Ed Sheeran" OR artist "Foreign Beggars" OR artist "Giggs" OR artist "Jamieson" OR artist "Jyager" OR artist "Kashmere" OR artist "Klashnekoff" OR artist "Kyza" OR artist "LDZ" OR artist "Loudmouth Melvin" OR artist "Lowkey" OR artist "Nine High" OR artist "Orphans Of Cush" OR artist "Micall Parknsun" OR artist "Mystro" OR artist "Percy Filth" OR artist "Ramson Badbonez" OR artist "Redbeard" OR artist "Remus" OR artist "Rhyme Asylum" OR artist "Seven" OR artist "skinnyman" OR artist "Skreintax" OR artist "Skriblah DanGogh" OR artist "Skitz" OR artist HAS "Sonnyjim" OR artist "Stig of the Dump" OR artist "Task Force" OR artist "Verb T" OR artist "Yungun & Mr Thing" AND rating >= 4) AND (genre HAS "hop" or genre HAS "rap"
Doesn't work

Can anyone tell me why?
sabret00the is offline   Reply With Quote
Old 24th January 2012, 10:20   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
from a quick look at the source code after working out the length of your queries (which are 975, 1006, 108 and 1049 characters long respectively), it's because the internal buffers are limited to 1024 (effectively only allowing 1023 characters).

other than changes made to the buffer sizes in ml_local itself, you'd need to keep your query size to below 1024 characters at the moment.

-daz
DrO is offline   Reply With Quote
Old 24th January 2012, 10:25   #3
sabret00the
Member
 
Join Date: Feb 2006
Location: London (UK)
Posts: 50
Send a message via AIM to sabret00the
Thanks for the quick feedback. If I update the sizes in ml_local will I have to repeat the process before every upgrade?
sabret00the is offline   Reply With Quote
Old 24th January 2012, 10:30   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
sorry but i'm not following what you mean.

either way, i'm just run off a patch to submit which increases the internal buffer sizes to 2048 characters which should be enough in future. though got to say your query takes an age to run - is ~30secs for the longest one to complete on my smallish (~7600) library.

-daz
DrO is offline   Reply With Quote
Old 24th January 2012, 12:55   #5
sabret00the
Member
 
Join Date: Feb 2006
Location: London (UK)
Posts: 50
Send a message via AIM to sabret00the
My apologies, I guess I wasn't being clear. If I edit my file locally, will I then have to update it with every upgrade (as in does winamp overwrite the file when it upgrades) or should the changes stay in place? But since you said you submitted a patch, it should by fine either way. Thank you.
sabret00the is offline   Reply With Quote
Old 24th January 2012, 13:03   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
am assuming you're talking about manually editing gen_ml.ini? if so then that should not be touched on upgrades (as long as it's not been altered when Winamp closed).

-daz
DrO is offline   Reply With Quote
Old 29th January 2012, 19:23   #7
sabret00the
Member
 
Join Date: Feb 2006
Location: London (UK)
Posts: 50
Send a message via AIM to sabret00the
I couldn't find gen_ml.ini and I couldn't edit the gen_ml.dll so I've left it and decided to wait until an updated version is released? Any idea when that will be?
sabret00the is offline   Reply With Quote
Old 29th January 2012, 21:08   #8
DrO
 
Join Date: Sep 2003
Posts: 27,873
no idea, all i know is the patch is in there now.

-daz
DrO is offline   Reply With Quote
Old 1st February 2012, 20:35   #9
Crashguard303
Member
 
Crashguard303's Avatar
 
Join Date: Oct 2008
Location: Dortmund, NRW
Posts: 60
They should allow | as "or" and other symbol for "and" like they do with ! for "not", this would make query code shorter.

Just an idea.

if "has" an other commands would also have a symbol, you could even remove spaces, so code could be extremely short

Regards,
Alex

The sum of all energies is zero.
Crashguard303 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Tags
query, smart playlist, winamp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump