Help - Search - Members - Calendar
Full Version: Database Search
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8
foosion
QUOTE(Melomane @ Jun 26 2003 - 10:43 PM)
without contest menu hack , "open directory"  isn't  useful: can you remove from context menu?

I would have to look for this particular entry, and not include it. I don't know, if it's worth the hassle. I'm currently porting my plugins to fb2k 0.7, the problem probably solved there (I'll have to look a bit more into the new stuff to know for sure).
Melomane
ok! no problems

report bug:

open database search , make query , ok , all work.
closed database search

REOPEN database search (edited: forgotten line)

foobar crash:

FOOBAR2000 a causé une défaillance de page dans
le module FOO_DBSEARCH.DLL à 0187:00fe3047.
Registres :
EAX=00000094 CS=0187 EIP=00fe3047 EFLGS=00010246
EBX=00001ef2 SS=018f ESP=0067f270 EBP=0000000c
ECX=00000000 DS=018f ESI=00ff1fa4 FS=4ecf
EDX=00000000 ES=018f EDI=0067f314 GS=0000
Octets à CS : EIP :
8b 01 52 ff 50 14 8d 4c 24 10 8b e8 e8 28 8f 00
État de la pile :
00000000 00ff1fa4 0000000c 00001ef2 ffeb0000 00fe2e4b 00000fb4 00ff1fa4 00fe3153 00000000 00fe2cc1 00000000 00ff1fa4 000082a4 bff7152e bff71547
foosion
Can you reproduce this? How?
Melomane
Sorry, i have I forgot a line, i have edit my post (reopen database search)
anza
QUOTE(Melomane @ Jun 27 2003 - 12:08 AM)
ok! no problems

report bug:

open database search , make query , ok , all work.
closed database search

REOPEN database search (edited: forgotten line)

foobar crash:

FOOBAR2000 a causé une défaillance de page dans
le module FOO_DBSEARCH.DLL à 0187:00fe3047.
Registres :
EAX=00000094 CS=0187 EIP=00fe3047 EFLGS=00010246
EBX=00001ef2 SS=018f ESP=0067f270 EBP=0000000c
ECX=00000000 DS=018f ESI=00ff1fa4 FS=4ecf
EDX=00000000 ES=018f EDI=0067f314 GS=0000
Octets à CS : EIP :
8b 01 52 ff 50 14 8d 4c 24 10 8b e8 e8 28 8f 00
État de la pile :
00000000 00ff1fa4 0000000c 00001ef2 ffeb0000 00fe2e4b 00000fb4 00ff1fa4 00fe3153 00000000 00fe2cc1 00000000 00ff1fa4 000082a4 bff7152e bff71547

Reproduced ohmy.gif
foosion
QUOTE(Melomane @ Jun 27 2003 - 12:22 AM)
Sorry, i have I forgot a line, i have edit  my post  (reopen database search)

Thanks, now I see what was going wrong. This should be fixed now.
BlindSeer
Thanks for making Ctrl-A work. I still think an option to play all search results when enter is pressed in the search field would be pretty cool, but I'm happy. smile.gif
foosion
foo_dbsearch 0.10 public test
Foobar2000 version: 0.7x

Notes: Full documentation will come with the final 0.10 release (later today?). Everyone who has used previous versions of this plugin should have little problems (I hope). For now, the help in the configuration has some basic info.

download link: foo_dbsearch-0.10.zip

from the change log:
QUOTE
[0.10]
2003-06-29
- upgraded to 0.7b9 sdk
- removed epxerimental feature: background color codes
- display string now works like in the playlist (color codes and columns)
- some minor ui changes


Edit by Case: fixed the link
foosion
There's now preliminary documentation available on foo_dbsearch 0.10: readme.html

In case you already have 0.10, you should redownload it now (small fix+enhancement).
Melomane
great work biggrin.gif
anza
Ok I think there's again something fishy going on ph34r.gif
Is it just me, or doesn't the font for selected text change? No matter how many times I set it to white (actually, the in the color selection, it is the color I've set it) but still it shows as black when I open up the window. All other colors work fine.
But otherwise, really great job here!
foosion
QUOTE(change log)
[0.10a]
2003-06-30
- fixed text color configuration: it now also works, if the search window is closed
- added toggable "quicklist" (lame excuse for not yet having presets)

The quicklist entries can be configured in - tada - the configuration. Each non-empty line will add one entry to the quicklist. If the quicklist is off, the plugin will always use the custom search string from the configuration. If the quicklist is on, the selected quicklist entry is used as search string. The state of the quicklist and its entries are remembered. The selection is remembered, but it is reset to "Custom search string" when you edit the quicklist entries.

PS: Still the same download link as for 0.10.
anza
It still won't work. "Selected text color" is still inverted color of "text color" (ie. black if "text color" is white).
Melomane
confirmed, but choose color same in playlist work fine (0000FF|0000FF)
Simply remove "choose color for selected text" !?

quick list is wonderfull!!!!
foosion
I uploaded 0.10b. "Selected text color" now works like in 0.9 again.
foosion
Uploaded foo_dbsearch 0.10c for foobar2000 version 0.7b12.
No new features. The download link is still the same as for all previous 0.10 versions.
musicmusic
Thanks foosion, the new version is great smile.gif

A few things

- when you choose something in the search history drop down list, the results is not updated, could this be changed?

- searching gets really slow with complicated display strings, not your fault I suppose? (Its only noticable on empty search with display all entires when query empty on, or searches with lots of results (1000+) difference is 0.09 secs vs ~1-2 secs)

- how come the jump to letter in the result list is gone in 0.9+ ? can it be added again ?

- will playlist search behaviour be improved ?

But the new version is really great (and will be better with the profiles wink.gif)
foosion
QUOTE
- when you choose something in the search history drop down list, the results is not updated, could this be changed?

ssamadhi97 asked me to remove this, I think I should make it configurable.

QUOTE
- searching gets really slow with complicated display strings, not your fault I suppose? (Its only noticable on empty search with display all entires when query empty on, or searches with lots of results (1000+) difference is 0.09 secs vs ~1-2 secs)

Try using a separate search string. If the difference in complexity is big enough, you may gain some speed.

QUOTE
- how come the jump to letter in the result list is gone in 0.9+ ? can it be added again ?

The jump to letter feature is part of the standard behaviour of Windows list boxes. The new version uses a custom control. The feature is just not (yet) implement there.

QUOTE
- will playlist search behaviour be improved ?

What do you mean? Please elaborate.
musicmusic
QUOTE
ssamadhi97 asked me to remove this, I think I should make it configurable.
well I actually use it to access my frequent searches so that would be helpful

QUOTE
Try using a separate search string. If the difference in complexity is big enough, you may gain some speed.
I dont know, I thought Id use a cut down version of my foobar display string as the database display string but its too slow so Ill just forget about that..

QUOTE
The jump to letter feature is part of the standard behaviour of Windows list boxes. The new version uses a custom control. The feature is just not (yet) implement there.
It thought so, its useful so it would be appreciated..

QUOTE
What do you mean? Please elaborate.
Its useless adding it back into the playlist on double click dont you think? At least the option to change behaviour (two that come to mind are to play it, or locate it in the playlist) would be nice.

Would it be possible to make a button in config to copy foobar's playlist display colours/font etc. (if they are accessible) ? Would save a lot of time for though of us who use the same colours/settings. (But at the same time Im not particulary bothered)

Thanks.
foosion
QUOTE
QUOTE
ssamadhi97 asked me to remove this, I think I should make it configurable.
well I actually use it to access my frequent searches so that would be helpful

To put things right, ssamadhi97 asked me to change the behaviour in a way that the plugin won't update the results when you choose the currently selected from the dropdown list, thereby destroying the selection. Unfortunately, I noticed that even with the old update code, updating when a new item is selected does not work correctly on my PC. If it worked for you in previous versions, that was merely luck sad.gif

QUOTE
QUOTE
What do you mean? Please elaborate.
Its useless adding it back into the playlist on double click dont you think? At least the option to change behaviour (two that come to mind are to play it, or locate it in the playlist) would be nice.

While the plugin already supports searching in multiple domains (databas, playlist, and history), it still is centered around the database. I'm still working on a better integration of other search domains, like configurable, domain specific default actions. The current interfaces do not allow to create a search domain dynamically (for example alternate playlists, bookmark collections, ...). When a (for me) acceptable level of integration has been reached, the name of the plugin will be changed as well.

QUOTE
Would it be possible to make a button in config to copy foobar's playlist display colours/font etc. (if they are accessible) ? Would save a lot of time for though of us who use the same colours/settings. (But at the same time Im not particulary bothered)

Formatting strings are accessible, the font and the colors are not AFAIK.
musicmusic
QUOTE(foosion @ Jul 7 2003, 11:03 PM)
QUOTE
QUOTE
ssamadhi97 asked me to remove this, I think I should make it configurable.
well I actually use it to access my frequent searches so that would be helpful

To put things right, ssamadhi97 asked me to change the behaviour in a way that the plugin won't update the results when you choose the currently selected from the dropdown list, thereby destroying the selection. Unfortunately, I noticed that even with the old update code, updating when a new item is selected does not work correctly on my PC. If it worked for you in previous versions, that was merely luck sad.gif

No, it didnt, not even in foo_shizzle that's why I was asking about it..
QUOTE
While the plugin already supports searching in multiple domains (databas, playlist, and history), it still is centered around the database. I'm still working on a better integration of other search domains, like configurable, domain specific default actions. The current interfaces do not allow to create a search domain dynamically (for example alternate playlists, bookmark collections, ...). When a (for me) acceptable level of integration has been reached, the name of the plugin will be changed as well.

Sounds good wink.gif

QUOTE
Formatting strings are accessible, the font and the colors are not AFAIK.


Oh ok then..

Thanks.
foosion
foo_dbsearch 0.10d
important! fixes (rather huge) memory leak!
QUOTE(change log)
[0.10d]
- upgraded to SDK version 0.7b13
- added "jump to letter" feature to result list
- fixed memory leak

to make your life easier: foo_dbsearch-0.10.zip
SAAM
Hello there,

I just have one question on this plugin :
I can't find out how to perform a search that show entries that exactly match.
I want to search entries based on an album reference number.

Can anybody help?

Thanks
Mestax
Shit, i posted to the wrong thread....
foosion
QUOTE(SAAM @ Jul 21 2003, 02:10 PM)
Hello there,

I just have one question on this plugin :
I can't find out how to perform a search that show entries that exactly match.
I want to search entries based on an album reference number.

Can anybody help?

Thanks

I hope you don't want to do case-sensitive matching, because this is not possible ATM. But as far as I've understood your question, you want to search for all entries that have tag field X equal to some value you want to search for. The plugin shows all entries that contain a given keyword (or multiple keywords, but I assume that is not important for your task).
The trick is to choose the search string and the keyword in a way, so that the keyword will only match whole fields. One way to this is to use some delimiters in your search string and to use them in (or rahter around) the keyword as well. Example search string:
CODE
|%artist%|

With this you can search for |foo|, and the plugin will only find entries where the artist field is equal to foo. Of course you don't need to use the same delimiter character on both sides, you might also use ^ and $, or < and >, or ....
SAAM
I am not interested in case sensitive search because I search a number. Your 'trick' works perfectly for me, thanks a lot! biggrin.gif
sergeymen
Does anyone know if there is any way to search a specific field using this plug-in -- other than changing the search string?

If it's not possible to do this currently, could foosion please implement something to that end -- it may be easiest to just add another pulldown list to the database search window (not the configuration window) that would store different search strings.
foosion
If you're using 0.7x: use the quicklist (described in one of my previous posts).

if you're using 0.6x: use 0.7x. rolleyes.gif
sergeymen
thanks, foosion!
foosion
foo_dbsearch 0.11.1
- fixed metadb_handle leaks

download
DaCypher
Just had to say thanks for this really useful plugin.
spazz
hello..!

i got a problem. when i'm changing the default "search in" from database to playlist, and restart fb2k, the "search in" is set to database :/ it isnt saved?

and.. is it possible to add as the default action "play now" ?

thx for reply's smile.gif

and sorry for the bad english *g, bye..
foosion
QUOTE(spazz @ Sep 21 2003, 01:28 AM)
hello..!

i got a problem. when i'm changing the default "search in" from database to playlist, and restart fb2k, the "search in" is set to database :/ it isnt saved?

and.. is it possible to add as the default action "play now" ?

thx for reply's smile.gif

and sorry for the bad english *g, bye..

What's wrong about the "Play" command? This is present in 0.11.1, it was possibly already introduced in 0.11.0 - I can't remember that. rolleyes.gif
Nitty
QUOTE(foosion @ Sep 20 2003, 11:47 PM)
QUOTE(spazz @ Sep 21 2003, 01:28 AM)
hello..!

i got a problem. when i'm changing the default "search in" from database to playlist, and restart fb2k, the "search in" is set to database :/ it isnt saved?

and.. is it possible to add as the default action "play now" ?

thx for reply's smile.gif

and sorry for the bad english *g, bye..

What's wrong about the "Play" command? This is present in 0.11.1, it was possibly already introduced in 0.11.0 - I can't remember that. rolleyes.gif

Play isn't on the default action list.
foosion
QUOTE(Nitty @ Sep 21 2003, 09:59 AM)
Play isn't on the default action list.

Oops, my fault. I apparently added this in an internal build, that I did not upload. It is now on the server as version 0.11.2.

download
anza
The new play function is great, I directly replaced my hotkey for search to point to database search smile.gif

One thing though, the "search in" setting isn't saved after restart of foobar.
Nitty
QUOTE(foosion @ Sep 21 2003, 01:04 AM)
QUOTE(Nitty @ Sep 21 2003, 09:59 AM)
Play isn't on the default action list.

Oops, my fault. I apparently added this in an internal build, that I did not upload. It is now on the server as version 0.11.2.

download

Thanks
amppa
Great! I had tested the database searches but didn't find them too useful without the "play" action. With large playlist and complex formatting string the default search really was not usable.. Thanks again, this is going to be used a lot.
foosion
foo_dbsearch 0.11.3

QUOTE(change log)
- removed "Remove from database" from context menu
- selected search domain is now remembered
- fixed small multithreading bug that could crash the program
- added search domain "All playlists"

I'm currently doing some internal rearrangements in this plugin, some of which of have made it into this release, like new interfaces for the search domains. Because of this, you'll have to redownload foo_copynpaste, if you want to search in the clipboard. I've had some problems recompiling foo_history, so you can't search the history for now. sad.gif

<edit>
I almost forgot this: you can use %_playlist_name% to get - tada! - the name of the playlist an item is from. This works when searching in "Playlist" and "All playlists".
</edit>
kuyawsadabaw
is there a highlight function so that whatever I select on the searchbox is selected on the playlist?
spazz
QUOTE(kuyawsadabaw @ Sep 30 2003, 09:16 PM)
is there a highlight function so that whatever I select on the searchbox is selected on the playlist?

oh yeah that would be nice for "follow cursor".. :>
foosion
QUOTE(kuyawsadabaw @ Oct 1 2003, 07:16 AM)
is there a highlight function so that whatever I select on the searchbox is selected on the playlist?

No, currently not. I'll consider this for the next release.
DaCypher
QUOTE(anza @ Sep 21 2003, 01:48 AM)
The new play function is great, I directly replaced my hotkey for search to point to database search smile.gif

One thing though, the "search in" setting isn't saved after restart of foobar.

I too would love to have it save the search in field. smile.gif
ilikedirtthe2nd
hi,

i really like your plugin smile.gif just one thing, that is bugging me (i browsed the topic roughly, don't know if something like that has been asked before)

right now i do this: search for e.g. the name of an artist, hit tab, hit ctrl + a, hit enter. could you make a hotkey available, that sends the results of the current search to the playlist, even if i didn't select the results?

regards; ilikedirt
foosion
QUOTE(ilikedirtthe2nd @ Oct 17 2003, 07:46 PM)
hi,

i really like your plugin smile.gif just one thing, that is bugging me (i browsed the topic roughly, don't know if something like that has been asked before)

Yes, It has been asked for.

QUOTE
right now i do this: search for e.g. the name of an artist, hit tab, hit ctrl + a, hit enter. could you make a hotkey available, that sends the results of the current search to the playlist, even if i didn't select the results?

regards; ilikedirt

OK, I give in. smile.gif But the hotkey won't be configurable, so I'm asking you (and the others), if the following would do:
1) Shift-Enter for "Add to playlist"
2) Control-Enter for "Send to playlist..."
DaCypher
foosion,

Those hotkeys sound cool to me...

How do you feel about saving the "search in" field? smile.gif
foosion
QUOTE(DaCypher @ Oct 17 2003, 09:45 PM)
How do you feel about saving the "search in" field?  smile.gif

If you're talking about the "Search in" submenu in the contextmenu, that should already work (it does for me). On the other hand, if you're refering to the dropdown list with formatting strings, this setting will also be saved in the new version. (This was rather a bug, as the setting is already saved, but it is reset everytime the plugin starts blink.gif ).
DaCypher
Yea, I was referring to the dropdown list with formatting strings. Can't wait for the new version. smile.gif

Thanks for the very cool plugin by the way. smile.gif
ilikedirtthe2nd
QUOTE(foosion @ Oct 17 2003, 06:10 PM)
OK, I give in. smile.gif But the hotkey won't be configurable, so I'm asking you (and the others), if the following would do:
1) Shift-Enter for "Add to playlist"
2) Control-Enter for "Send to playlist..."

yes, sounds fine to me smile.gif
foosion
foo_dbsearch 0.11.4

- added hotkeys Shift-Enter (adds all items to the playlist) and Control-Enter (executes "Send to playlist..." with all items). use them in the input box.
- some general commands where moved to foo_utils:
"Add to playlist", "Insert into playlist", "Send to playlist", "Play"

see this site for download links: http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.