Author Topic: Virtual tag for comparing length of two folders  (Read 2301 times)

Aealo

  • Newbie
  • *
  • Posts: 8
Hi,
I have recently migrated from foobar to MusicBee and I am trying to achieve album grouping like I had in foobar for multiple discs albums.

Code I was using in foobar is "$longest($directory(%path%),$directory(%path%,2))" which basically compares length of folder name files are in and its parent folder.

Here is my naming scheme:
• Music
    • Artist - Album Name (Year)
         • Disc 1
         • Disc 2

So I would like to achieve that if there is multiple CD album, MusicBee would group it into one with name Artist - Album Name (Year) instead of two named Disc 1 and Disc 2.

Is something like that possible here?

           

redwing

  • Guest
This will do:
Code
$Split(<Path>,\,3) 
See this regarding how it works (https://getmusicbee.com/forum/index.php?topic=22186.msg130363#msg130363)

Is this for album grouping setting? I wouldn't recommend adding a virtual tag into album grouping setting as you may suffer frequent UI freezing depending on your library size. Using tags would work much better. Also if your files are well tagged, you can easily change your folder structure using a filenaming template.

Aealo

  • Newbie
  • *
  • Posts: 8
Thank you, thats exactly what I wanted. My library only has around 4k albums but I have not noticed any freezing. I cant use regular tags because I cant change files in any way.

Also is it possible to extend text field under artwork in "album covers" view so it show all text without cropping it out?

redwing

  • Guest
Try adjusting expanded panel configuration settings, but if you have lengthy values you may need to use Track Information panel instead for that.

Aealo

  • Newbie
  • *
  • Posts: 8
I wanted to see all info without clicking on album but its ok if thats not possible. One last question, if I want to change color of highlight currently playing track in "Playing Track" (one with speaker indicator) which element from http://musicbee.wikia.com/wiki/Skinning_Elements should I add to xml file?

redwing

  • Guest
I wanted to see all info without clicking on album but its ok if thats not possible.

Try tracks at the bottom or to the right setting in artwork view configuration setting.

One last question, if I want to change color of highlight currently playing track in "Playing Track" (one with speaker indicator) which element from http://musicbee.wikia.com/wiki/Skinning_Elements should I add to xml file?

That wiki page is not up to date. See these too:

https://getmusicbee.com/forum/index.php?topic=21851.0
https://getmusicbee.com/forum/index.php?topic=2499.msg108200#msg108200

If you're referring to expanded panel in artwork view:

<element id="Content[Artwork].Expanded.Highlight" fg="xxx,xxx,xxx" bg="xxx,xxx,xxx" />
<element id="Content[Artwork].Expanded.Lowlight" fg="xxx,xxx,xxx" bg="xxx,xxx,xxx" />

colors expanded panel selector when auto-pick color option is disabled. When the option is enabled, they are automated.

Aealo

  • Newbie
  • *
  • Posts: 8
Info to the right or at the bottom is not exactly what I want because I want to see folder name of all albums not just one selected.

Here is image of info and current track https://i.imgur.com/6AlTssc.jpg


redwing

  • Guest
What I meant is the first two options in artwork view configuration settings:


redwing

  • Guest
Also, if you want to browse folders rather than tags, try library explorer element with folders category selected.
You can use folder browser too. The difference is library explorer shows folders only for tracks in your library whereas folder browser shows all folders.

Aealo

  • Newbie
  • *
  • Posts: 8
Yes, I know what you meant but I am fine with bottom option as none of these actually change what I wanted. I guess its not possible to change size of that text field so I can fit everything there. The only way would be increasing size of artwork but slider is at max and I dont think its possible to increase that. As for the background skinning of track with speaker indicator. I have tried all codes from this post https://getmusicbee.com/forum/index.php?topic=2499.msg74287#msg74287 but non changed it https://i.imgur.com/8epalwN.png
Last Edit: November 02, 2017, 02:28:31 PM by Aealo

redwing

  • Guest
You will need to add the whole set of NowPlayingList[TrackDetail] elements, not just high/lowlight elements, to override.

Aealo

  • Newbie
  • *
  • Posts: 8
Yes I have added all these:

<element id="NowPlayingList[TrackDetail].ListHeader" bg="40,240,240" bg2="225,5,5" fg="0,210,0" bdr="255,80,80" />
  <element id="NowPlayingList[TrackDetail].Default" bg="55,255,255" fg="0,200,0" bdr="200,2,100" />
  <element id="NowPlayingList[TrackDetail].Highlight" bg="45,236,172" bdr="227,216,152" fg="0,220,20" />
  <element id="NowPlayingList[TrackDetail].Lowlight" bg="35,235,235" bdr="25,105,25" fg="0,250,40" />
  <element id="NowPlayingList[TrackDetail].Disabled" fg="70,70,0" />
  <element id="NowPlayingList[TrackDetail].ListAlternating.Default" bg="48,248,248" fg="0,210,0" />
  <element id="NowPlayingList[TrackDetail].ListAlternating.Disabled" fg="70,250,170" />

But it appears none of them changes background of only track that is now played.
Default and Alternating change color of rows. Highlight is row that is selected, Lowlight is that was selected but window is inactive and I am not sure what Disable changes.

redwing

  • Guest
Disabled colors tracks that are not accessible or unplayable.

I forgot to mention that you need to enable "highlight playing track in playing tracks panel" option in Preferences> Now Playing. Then playing track will get always selected and colored following the setting (font fg) and the skin elements (high/lowlight bg).

Aealo

  • Newbie
  • *
  • Posts: 8