Support and General Use > Audio Playback, Database and Playlists

Custom Title format in tagnavi_custom

(1/4) > >>

chileboy:
I'm loving the ability to build customized menus when browsing the database, but I'm trying to build a customized song title based on whether or not it is from an album marked as a compilation.

I like to browse in this manner:

    Genre -> Album Artist -> Album

So far so good.  The issue I'm trying to address is when the album is marked as a Compilation (where the Album Artist is usually, but not always, "Various Artists")

Instead of the song title appearing as:

    1.03  Tragedy - 05:16
 
I'd like to see

    1.03  Don Ellis - Tragedy - 05:16

I've read through the Database wiki, and I thought I could build fmt_title with multiple conditionals, and access compilation information by using the "_cmpl" which the wiki says is appended to the title - so I cooked this up:


--- Code: ---%format "fmt_title"       "%d.%02d. %s - %02d:%02d" discnum tracknum title Lm Ls ? discnum > "0" & filename !~ "_cmpl"
%format "fmt_title"       "%02d. %s - %02d:%02d" tracknum title Lm Ls ? tracknum > "0" & filename !~ "_cmpl"
%format "fmt_title"       "%s - %02d:%02d" title Lm Ls ? filename !~ "_cmpl"
%format "fmt_title"       "%d.%02d. %s - %s - %02d:%02d" discnum tracknum artist title Lm Ls ? discnum > "0"
%format "fmt_title"       "%02d. %s - %s - %02d:%02d" tracknum artist title Lm Ls ? tracknum > "0"
%format "fmt_title"       "%s - %s - %02d:%02d" artist title Lm Ls

--- End code ---

but it seems to flag everything as "not from a compilation".

Can I not access "_cmpl" from a %format line?

Alternatively, can I use a conditional, similar to the wps definition:


--- Code: ---%if(compilation, =, 1) <yes | no>

--- End code ---

I would try the latter, except I can't seem to locate in the docs anywhere how to access the compilation tag directly, or if it is even possible.

Or am I way off base here?

Many thanks.

- Mark


steelman:
Please remember that you need to reboot for the changes you've made to take effect.

chileboy:
I've tried that - even reinitialized the database (although I didn't think that would matter)...

Thanks, though.

steelman:
OK. Try removing all fmt_title-s from tagnavi.config. Their order is significant and yours won't override "theirs". Their ones would be selected as matching first.

chileboy:
Ok, but I followed bascule's instructions in this thread - the way I interpreted it, the default tagnavi.config isn't even processed past the "include tagnavi_custom.config" line - is that not the case?  The whole point is not having to modify the default tagnavi at all.  As bascule said, "You should never need to touch the original tagnavi.config file, as that will always get overwritten when you update a build."

Navigation

[0] Message Index

[#] Next page

Go to full version