Support and General Use > Audio Playback, Database and Playlists

Creating custom Tagcache query?

(1/9) > >>

afruff23:
The tagnavi.config syntax is very confusing, even with that guide in the wiki. Any help is appreciated. Thanks.

Hi, I would like to create a tagcache menu item called "Electronica". I would like it to work by adding any songs tagged with house, trance, electronica, IDM, etc. (I have many other genres, but an example consisting of more than 2 genres under this menu item will help me do the rest on my own). The menu item should be called "Electronica" as stated before. The first level should display artists. The second level should display albums. The third level should display tracks.

Also, I would like to create another tagcache menu item called "Genre Albums". This would have the first level be genres. The second level would be albums. The third level should display tracks.

Thanks again.

bascule:
--#1--

--- Quote from: afruff23 on October 05, 2006, 05:23:32 PM ---The tagnavi.config syntax is very confusing, even with that guide in the wiki. Any help is appreciated. Thanks.

--- End quote ---
The Wiki has not yet been updated with the V 2.0 syntax changes...

--- Quote ---
--- Quote from: roolku on September 24, 2006, 10:59:32 AM ---When I am having more time next month I was planning to update the wiki (unless someone beats me to it).

--- End quote ---

--- End quote ---

--#2--

--- Quote from: afruff23 on October 05, 2006, 05:23:32 PM ---Hi, I would like to create a tagcache menu item called "Electronica". I would like it to work by adding any songs tagged with house, trance, electronica, IDM, etc. (I have many other genres, but an example consisting of more than 2 genres under this menu item will help me do the rest on my own). The first level should display artists. The second level should display albums. The third level should display tracks.

--- End quote ---

I think this should work, but I haven't tested it ;)

--- Code: ---"Electronica"  -> artist ? genre = "house" & genre = "trance" & genre = "IDM" -> album -> title = "%02d %s" tracknum title
--- End code ---

--#3--

--- Quote from: afruff23 on October 05, 2006, 05:23:32 PM ---Also, I would like to create another tagcache menu item called "Genre Albums". This would have the first level be genres. The second level would be albums. The third level should display tracks.

--- End quote ---

This will work:

--- Code: ---"Genre Albums"        -> genre -> album -> title = "%02d %s" tracknum title
--- End code ---

roolku:

--- Quote from: bascule on October 06, 2006, 05:39:25 AM ---The Wiki has not yet been updated with the V 2.0 syntax changes...

--- End quote ---

Maybe I can find some time today...


--- Quote ---I think this should work, but I haven't tested it ;)

--- Code: ---"Electronica"  -> artist ? genre = "house" & genre = "trance" & genre = "IDM" -> album -> title = "%02d %s" tracknum title
--- End code ---

--- End quote ---

Unfortunately this won't work. It should be


--- Quote ---I think this should work, but I haven't tested it ;)

--- Code: ---"Electronica"  -> artist ? genre = "house" | genre = "trance" | genre = "IDM" -> album -> title = "%02d %s" tracknum title
--- End code ---

--- End quote ---

However the | (OR) operator has not been implemented (yet). Unfortunatly this is not easy to do either.

For your special case I can envision a "oneof" operator, where you supply a list of possible values e.g.


--- Code: ---"Electronica"  -> artist ? genre oneof "house|trance|IDM" -> album -> title = "%02d %s" tracknum title
--- End code ---

I might give it a try and make a patch to see how well it works.

bascule:

--- Quote from: roolku ---Unfortunately this won't work.
--- End quote ---

Of course it won't, I was forgetting my database queries logic there :)  Thanks for putting me straight. Oh well, one out of two isn't too bad.

ww2-:

--- Quote from: roolku on October 06, 2006, 05:59:35 AM ---
--- Quote from: bascule on October 06, 2006, 05:39:25 AM ---The Wiki has not yet been updated with the V 2.0 syntax changes...

--- End quote ---

Maybe I can find some time today...

--- End quote ---

Please do. =)

Navigation

[0] Message Index

[#] Next page

Go to full version