Old 14th August 2004, 02:11   #1
BigKing
Junior Member
 
Join Date: Aug 2004
Posts: 1
Better search filter please

A better searchfilter like in www.mp3weasel.com for the medialibrary..

The seach option there is great..
BigKing is offline   Reply With Quote
Old 14th August 2004, 13:43   #2
Reaper
Forum King
 
Join Date: Apr 2002
Posts: 2,928
Mind explaining more? Most people here probably don't even use that program or know much about how it works. Are you sure you are not fully using the potential of the Media Library search?

Quote:
You can enable more powerful views using the custom query language.

The basic format is:

<field> <comparison> [value] [<logic operator> <field> <comparison> [value] [...]]

Field names:
TYPE: 0 for audio files, 1 for video files
FILENAME: Full filename (including path)
LENGTH: Length, in seconds (or hh:mm:ss)
ARTIST: Artist
ALBUM: Album
TITLE: Title
TRACKNO: Track number of file
GENRE: Genre
YEAR: Year
COMMENT: Comment
FILESIZE: File size, in kilobytes
FILETIME: Last known file date/time on disk
LASTUPD: Date/time of file imported to library or modified in library
LASTPLAY: Date/time of last play
RATING: Rating value (1-5, or 0 or empty for unrated)
PLAYCOUNT: Number of plays
BITRATE: Bitrate (in KBPS)

Comparison operators:
'=': String or integer equals value
'!=': String or integer does not equal value
'<': String or integer is less than value
'>': String or integer is greater than value
'<=': String or integer is less than or equal to value
'>=': String or integer is greater than or equal to value
HAS: String contains value
NOTHAS: String does not contain value
LIKE: String is similar to value ("the" and whitespace are ignored)
BEGINS: String begins with value
ENDS: String ends with value
ISEMPTY: (no comparison value required) TRUE if <field> is empty
ISNOTEMPTY: (no comparison value required) TRUE if <field> is not empty

Values:
"strings with spaces" or strings_without_spaces
integers can be "32" or just 32
integers for LENGTH can be a plain integer (seconds), or mm:ss or hh:mm:ss
date/timestamps should be [datetime data], which can be either an absolute
or relative time. i.e.: [3 weeks ago], [18:15], [05/30/2003],
[yesterday noon], [3 days ago 5 pm], [now], [5 mn before may 30th], etc.

Logic operators:
&&, &, or AND: boolean AND two comparisons
||, |, or OR: boolean OR two comparisons
!, or NOT: prefix this to an expression for the boolean NOT of that expression

Examples:
all video files: type = 1
audio by Air longer than 4 minutes: type = 0 & artist = "air" & length > 4:00
all files on drive C: filename BEGINS C:
high rated items that haven't been played lately: rating > 3 & lastplay < [1 week ago]
newly added items that haven't been played yet: lastupd >= [yesterday] & playcount > 0

Note that you can also use this syntax in the search field of views. Simply prefix
a ? or 'query:' to your search string

ml_iPod - [Homepage] | [Forums] | [Wiki]
Reaper is offline   Reply With Quote
Old 22nd June 2006, 15:10   #3
emddd40x
Junior Member
 
Join Date: Feb 2006
Location: Southern California
Posts: 2
Send a message via ICQ to emddd40x Send a message via AIM to emddd40x Send a message via Yahoo to emddd40x
searching w/ Media library

Hey, thanks for listing how to do the searches. I tried using this in Media library for Winamp 5.24 and it didn't want to behave. I'm trying to search for songs with a length over 4 minutes. In Media Library's search entry I put "length > 4:00" (minus the quotes) and it returned "0 items". Now, I've got over 5000 items in my media library, surely it could have found something. Is there an updated listing for how to search in Media library for 5.2x? I notice your post is dated 2004.
emddd40x is offline   Reply With Quote
Old 22nd June 2006, 15:19   #4
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,226
Did you prefix the question mark? Like this:
? length > 4:00

If you leave out the question mark, it'll just search for the words you typed in.

If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 22nd June 2006, 15:45   #5
emddd40x
Junior Member
 
Join Date: Feb 2006
Location: Southern California
Posts: 2
Send a message via ICQ to emddd40x Send a message via AIM to emddd40x Send a message via Yahoo to emddd40x
Thanks!

That fixed it.
emddd40x is offline   Reply With Quote
Old 3rd November 2013, 10:28   #6
nadeeshan
Junior Member
 
Join Date: Nov 2013
Posts: 1
search filter

hi
how to search by "comment"

thanks
Nadeeshan
nadeeshan is offline   Reply With Quote
Old 3rd November 2013, 16:44   #7
Aminifu
Forum King
 
Aminifu's Avatar
 
Join Date: Aug 2011
Location: Phoenix, AZ
Posts: 4,716
Hi nadeeshan,

What in post #2 above you don't understand. It explains how to search by the "comment" field and the 16 other fields supported. Don't ignore the note (in bold type).

Winamp Pro v5.666.3516 fully-patched - Quinto Black CT v3.1 skin
Windows 10 Home 64-bit v2004 desktop - Logitech Z906 5.1 speaker system
Aminifu is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Wishlist

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