getmusicbee.com

Support => Questions => Topic started by: ben. on April 29, 2014, 04:38:10 PM

Title: custom/virtual tag for parent directory of mp3file
Post by: ben. on April 29, 2014, 04:38:10 PM
hey guys,
first of all, i am very happy to have found such a nice mp3player like musicbee :) after using winamp for ages.
i wanted to ask you guys, if its possible to make a custom tag, or virtual tag (i dont know the difference) which is showing the parent directory of my mp3file.
i am sorting my music collection after labels, like c:\music\labels\a_special_label\Artist-Album\01_trackname.mp3 and i would like to make musicbee showing me that "special_label" for every mp3 in my musicbee library :)

thanks in advance
Title: Re: custom/virtual tag for parent directory of mp3file
Post by: redwing on April 29, 2014, 05:30:30 PM
i am sorting my music collection after labels, like c:\music\labels\a_special_label\Artist-Album\01_trackname.mp3 and i would like to make musicbee showing me that "special_label" for every mp3 in my musicbee library

Create the following virtual tag and add the column to the main panel.

Label (or any other field name of your choice) = $Split(<Path>,\,4)

For creating and using virtual tags: http://musicbee.wikia.com/wiki/Virtual_Tags
Title: Re: custom/virtual tag for parent directory of mp3file
Post by: ben. on April 29, 2014, 05:39:22 PM
thx for your fast reply.
but that just works out if the library is scanned from one "sourcepath"..
shouldnt it be counted backwards?
Title: Re: custom/virtual tag for parent directory of mp3file
Post by: redwing on April 29, 2014, 05:47:26 PM
If you want to have it counted backwards, use $RSplit function instead.

With your original example,

$RSplit(<Path>,\,3)

should work.

Now I believe you got the idea and could modify the formula according to your folder structure.
Title: Re: custom/virtual tag for parent directory of mp3file
Post by: redwing on April 29, 2014, 05:51:35 PM
One more thing. $RSplit function was added to v2.4 so you will need to update your MB if you are running an older version.

http://musicbee.niblseed.com/V2_4/MusicBee_Exe_Patched.zip

Unzip and overwrite everything to your MB program folder.
Title: Re: custom/virtual tag for parent directory of mp3file
Post by: ben. on April 29, 2014, 05:58:37 PM
thx. works out after patching ;)
Title: Re: custom/virtual tag for parent directory of mp3file
Post by: Zak on April 30, 2014, 09:22:31 AM
custom tag, or virtual tag (i dont know the difference)
A custom tag behaves the same as any standard tag like Artist or Album. You can assign it a value and it gets stored in the file or the database depending on how you set it up.

A virtual tag isn't stored anywhere - it's only "calculated" when it needs to be used. I think there's an old thread where people listed some of the virtual tags they were using.