Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp Technical Support (http://forums.winamp.com/forumdisplay.php?f=11)
-   -   Smart Playlist Query Not working (http://forums.winamp.com/showthread.php?t=341153)

sabret00the 24th January 2012 09:59

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?

DrO 24th January 2012 10:20

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

sabret00the 24th January 2012 10:25

Thanks for the quick feedback. If I update the sizes in ml_local will I have to repeat the process before every upgrade?

DrO 24th January 2012 10:30

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

sabret00the 24th January 2012 12:55

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.

DrO 24th January 2012 13:03

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

sabret00the 29th January 2012 19:23

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?

DrO 29th January 2012 21:08

no idea, all i know is the patch is in there now.

-daz

Crashguard303 1st February 2012 20:35

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


All times are GMT. The time now is 23:06.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.