Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp iPod Plugin Discussion (http://forums.winamp.com/forumdisplay.php?f=69)
-   -   How do I make a Smart Playlist involving length? (http://forums.winamp.com/showthread.php?t=284971)

vurtomatic 14th January 2008 14:15

How do I make a Smart Playlist involving length?
 
Hi.

I'm trying to creaete a query that will load the playlist with music added within the past 2 weeks, and that are longer than 1 hour. I have:

filetime >= [2 week ago] AND length > "1:00:00"

And it's not working for me. It's showing me the tracks I've added in the past 2 weeks without limiting them by their time.

Don't get it, the query looks OK to me. Can someone tell me what's wrong please?

Cheers.

abu 14th January 2008 14:26

Um, as far as I see in the code, the length field is populated with the song length in milliseconds. Don't know if that's a bug or a feature. So try length > 3600000, does that work?

vurtomatic 14th January 2008 14:34

Yes I believe that works! Thanks abu. Milliseconds ... rather odd way of doing it!

fatcerberus1 14th January 2008 14:49

Quote:

Originally posted by abu
Um, as far as I see in the code, the length field is populated with the song length in milliseconds. Don't know if that's a bug or a feature. So try length > 3600000, does that work?
Sounds like a bug, because when you create a smartview in Winamp and specify length > 60 in advanced mode, the simple view shows "length is above 1:00"

vurtomatic 14th January 2008 14:50

Yeah I noticed that too, which caused much confusion. Ended trying 1:00:00 which didn't work either when 1:00 failed.

abu 14th January 2008 20:53

So it should be seconds at least, not milliseconds, right? That's easy to fix. But the different format like 1:00, I don't know if the NDE library handles that internally... Looking at the code: That seems to work.

Please try 3.02p27

vurtomatic 14th January 2008 21:54

That works. I keyed in

length > 3600

It also works fine now if I used 1:00:00 to indicate 1 hour (which didn't before), and 50:00 to indicate 50 mins.

Thanks again abu.

abu 15th January 2008 05:55

Cool, thanks for reporting back.


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.