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: Can I group in colums ui by file format? (Read 2036 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can I group in colums ui by file format?

Hi

I have some albums ripped in flac , mp3 and acc ,same album
I use album list or quick search to select my album and send to a new playlist
well , foobar2000 with my setting in colums UI ->playlist viewe -> Grouping
I have this
Code: [Select]
$rgb(41,143,204)$if2(%artist%,<no artist>) $rgb(128,192,255)$char(8226) $rgb(41,143,204)%date% $rgb(128,192,255)$char(8226) $rgb(41,143,204)$if(%album%,%album%[],)$tab()

but it does mix all the songs coded in mp3,aac and flac ,all together inside the same album
so i have tre songs ,same titles but of different format
1 song name
1 song name
1 song name

might you please keep my groupping settings but add some code to split albums via encoder?
maybe even without or with the codec name in the album title
thanks

Re: Can I group in colums ui by file format?

Reply #1
Just add %codec% wherever you want it displayed - say after the %album% title -

Code: [Select]
$rgb(41,143,204)$if2(%artist%,<no artist>) $rgb(128,192,255)$char(8226) $rgb(41,143,204)%date% $rgb(128,192,255)$char(8226) $rgb(41,143,204)$if(%album%,%album% '['%codec%']',)$tab()


Re: Can I group in colums ui by file format?

Reply #2
Just add %codec% wherever you want it displayed - say after the %album% title -

Code: [Select]
$rgb(41,143,204)$if2(%artist%,<no artist>) $rgb(128,192,255)$char(8226) $rgb(41,143,204)%date% $rgb(128,192,255)$char(8226) $rgb(41,143,204)$if(%album%,%album% '['%codec%']',)$tab()
hi  anamorphic
and you have fixed it!
and if i want to change the color of codec to orange (209,142,54) and a text like Codec
i have tried $if(%album%,%album% '$rgb(128,192,255)['Codec %codec%']',)$tab()[/code] , but it does't change the color of codec
and can i ask you seeing there are groups and i can move up and down , could be used like presets?
thanks ,i appreicate your help

Re: Can I group in colums ui by file format?

Reply #3
and if i want to change the color of codec to orange (209,142,54) and a text like Codec
i have tried $if(%album%,%album% '$rgb(128,192,255)['Codec %codec%']',)$tab()[/code] , but it does't change the color of codec
Because you have the $rgb function inside a single quote - anything inside single quotes is displayed "as is" and escapes / ignores other title formatting. You only need to use single quotes to display characters like '[' which are used by title formatting syntax. Move the quote over and the color works -

Code: [Select]
$if(%album%,%album% $rgb(128,192,255)'['Codec %codec%']',)$tab()


Quote
and can i ask you seeing there are groups and i can move up and down , could be used like presets?
CUI playlist viewer does not have grouping "presets" in the same way other playlist viewers do. Instead it only lets you show or hide a grouping per playlist.

In Preferences > Display > Columns UI > Playlist View > Grouping tab, you can double-click a grouping and choose under Playlist Filters to 'Show only on playlist:' or 'Hide on playlist:' - and then type a specific playlist name (or multiple names separated by semi-colon)

Re: Can I group in colums ui by file format?

Reply #4
@anamorphic
Hi
Quote
In Preferences > Display > Columns UI > Playlist View > Grouping tab, you can double-click a grouping and choose under Playlist Filters to 'Show only on playlist:' or 'Hide on playlist:' - and then type a specific playlist name (or multiple names separated by semi-colon)

so i can have many grouping tabs  disable them using the Hide on playlist , and switch/enable with Show only on playlist?

can i use
$if(%album%,%album% $rgb(128,192,255)' 'Codec %codec%' ',)$tab() ?

thanks

Re: Can I group in colums ui by file format?

Reply #5
^ Yes and yes.

(You can remove the single quotes if you just want spaces though)

Re: Can I group in colums ui by file format?

Reply #6
^ Yes and yes.

(You can remove the single quotes if you just want spaces though)
hi
but with your group setting i have this ,why?
Quote
$rgb(41,143,204)$if2(%artist%,<no artist>) $rgb(128,192,255)$char(8226) $rgb(41,143,204)%date% $rgb(128,192,255)$char(8226) $rgb(41,143,204)$if(%album%,%album% '['%codec%']',)$tab()
thanks

Re: Can I group in colums ui by file format?

Reply #7
That looks like a sorting issue, not grouping. Sorting is done by the library viewer. Which library viewer are you using to send tracks to playlist? (You need to add %codec% to that as well)

Re: Can I group in colums ui by file format?

Reply #8
That looks like a sorting issue, not grouping. Sorting is done by the library viewer. Which library viewer are you using to send tracks to playlist? (You need to add %codec% to that as well)
Hi anamorphic
I use album list mostly->
Code: [Select]
%<artist>%||%date%|%album%||%codec%| [[.]%tracknumber%. ][%track artist% - ]%title%
and
quick search -> but i can't find sorting name
and in the shell integration -> sort incoming file by i have
Code: [Select]
 %ARTIST% %DATE% %path% %ALBUM% %TRACKNUMBER% %TITLE%
thanks

Re: Can I group in colums ui by file format?

Reply #9
Do you mean Album List Panel? (Album List is DUI)

Your code has some double || which might not work correctly (?), try this...

Preferences > Media Library > Album List Panel > Views: 'by artist' - (double-click to edit) -
Code: [Select]
%<artist>%|%date%|%album%|%codec%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

^ (There is no reason to remove %discnumber% and removing it could also cause sorting issues. Also, confirm the correct view by right-click in Album List Panel > View > 'by artist', if not already)

And for Preferences > Shell Integration > 'Sort incoming files by' - the one you had should probably work but you could try this -

Code: [Select]
%album artist%|%date%|%path_sort%|%album%|%codec%|%discnumber%|%tracknumber%|%title%

^ (the Quicksearch component uses this if I recall)

Re: Can I group in colums ui by file format?

Reply #10
Do you mean Album List Panel? (Album List is DUI)

Your code has some double || which might not work correctly (?), try this...

Preferences > Media Library > Album List Panel > Views: 'by artist' - (double-click to edit) -
Code: [Select]
%<artist>%|%date%|%album%|%codec%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

^ (There is no reason to remove %discnumber% and removing it could also cause sorting issues. Also, confirm the correct view by right-click in Album List Panel > View > 'by artist', if not already)

And for Preferences > Shell Integration > 'Sort incoming files by' - the one you had should probably work but you could try this -

Code: [Select]
%album artist%|%date%|%path_sort%|%album%|%codec%|%discnumber%|%tracknumber%|%title%

^ (the Quicksearch component uses this if I recall)
Hi @anamorphic
I have changed the groupping as like have suggested to ->
Code: [Select]
$rgb(41,143,204)$if2(%artist%,<no artist>) $rgb(128,192,255)$char(8226) $rgb(41,143,204)%date% $rgb(128,192,255)$char(8226) $rgb(41,143,204)$if(%album%,%album% '['%codec%']',)$tab()
even i would like a nice color for the codec and not blue

and in album list and album list panel your code
Code: [Select]
%<artist>%|%date%|%album%|%codec%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

and in the Preferences > Shell Integration > 'Sort incoming files by' this code
Code: [Select]
%album artist%|%date%|%path_sort%|%album%|%codec%|%discnumber%|%tracknumber%|%title%

and it works ! But is there a way to backup all my old preferences?
there is Autosave & Autobackup component , but i don't know if it's compatible with v2 and 64bit so i don't to make a mess
let's say i could zip or rar the folder configuration ?

thank you so much , I really apprecitate you help pal

Re: Can I group in colums ui by file format?

Reply #11
Glad it works. :)

even i would like a nice color for the codec and not blue
You can have a nice color for the codec, just put $rgb is the correct place like I had in reply #3.

Backups - you're right old components like foo_jesus will not work on 64-bit, so you'd have to zip things yourself, I suppose... (hold Shift key > File > Browse configuration folder)

You could always copy/paste codes to a Notepad text file for reference if you want to keep a history.

Re: Can I group in colums ui by file format?

Reply #12
Glad it works. :)

even i would like a nice color for the codec and not blue
You can have a nice color for the codec, just put $rgb is the correct place like I had in reply #3.

Backups - you're right old components like foo_jesus will not work on 64-bit, so you'd have to zip things yourself, I suppose... (hold Shift key > File > Browse configuration folder)

You could always copy/paste codes to a Notepad text file for reference if you want to keep a history.
Hi anamorphic
I didn't know about :o
Quote
(hold Shift key > File > Browse configuration folder)
  
well i have zipped all configuration folder , i guess it does contain all the configuration even in the portable version
may I ask you the last question ?
I have facets component with this sorting should I keep it?
Code: [Select]
$stripprefix(%album artist%)|%date%|$stripprefix(%album%)|%path_sort%[|%discnumber%]|%tracknumber%|$stripprefix(%title%)%


I will keep it on v1.6 just for components compatibility
and about v2 there is ReFacets , maybe I could ask to the topic which sorting pattern does it use
thanks again really very kind!  O:)  O:)


 

Re: Can I group in colums ui by file format?

Reply #13
Keep it if you like. ;)

ReFacets has NO playlist sorting option - the ONLY library viewer to not have one. Very disappointing. So you are stuck with a default path sort making it largely useless to users needing to sort tracks by date, or codec, etc . I already requested it ages ago, but if more people ask Peter for this standard feature, hopefully he'll get around to it.