Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Suggestion for "Title formatting" preferences. (Read 1869 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Suggestion for "Title formatting" preferences.

Hi!

I think that is's a good idia to make a simething like global module in the
"Display -> Title formatting" preferences.
There I can describe global variables and after that use it in any other
tabs to format them in diffrent ways.
Now I need to desribe same things in each tab separately.

Such as standart variables definition:

// check if all standard tags are present
$if($meta_test(title,artist,album),
// formatting for files with tags:
// check if track belongs to VA album
$if($or($stricmp(%album artist%,VA),$stricmp($left(%album
artist%,7),various)),$puts(va,1),)
// 'album' formatting
$puts(album,'['%album%[ - CD$num(%disc%,1)]']'[ -
'['$num(%tracknumber%,2)']']
)
//if 'album artist' tag is present
$if(%album artist%,
// set 'artist' to VA for VA albums, and to 'album artist' otherwise:
$if($get(va),$puts(artist,VA),$puts(artist,%album artist%))
//if 'artist' is different from 'album artist', append the former to the
title
$if($strcmp(%album artist%,%artist%),$puts(title,%title%),
$puts(title,%title% '//' %artist%)),
//no 'album artist' found
$puts(artist,%artist%)$puts(title,%title%)
)

It would be convenient to put this in one tab, common for all other tabs.
And on other tabs would be only format strings, such as:

$num(%_playlist_number%,$len(%_playlist_total%)).' '
[$get(artist) - ]
[$get(album) - ]
[$get(title)]
$char(9)
[$codec(), ]
[%__bitrate% kbps, ]
[%__samplerate% Hz, ]
[%__mp3_stereo_mode%]
[$char(9)$if(%_isplaying%,'>>>>>>>>>> ')%_length%]

It help's to aviod a code dublications.


PS: Sorry for bad english.

Suggestion for "Title formatting" preferences.

Reply #1
I agree.
It has been suggested before but it didn't get any response.

Other sections can inherit the values set in the global section. If a specific value isn't set in the global section it can try to get the info from the file tags of file names again.

Suggestion for "Title formatting" preferences.

Reply #2
i as well proposed such a feature. Could not only be used for tags, but also for color variables or just configuration in general.

It didn't got implemented yet into the default UI (and i dont know of any plans to change that). However, global strings got implemented into foo_ui_columns - but with one drawback: you cannot use color-strings in global strings.

- Lyx
I am arrogant and I can afford it because I deliver.