Author Topic: Add Explicit Field To Custom Tags  (Read 12258 times)

jaydenpaul

  • Newbie
  • *
  • Posts: 16
It would be cool to be able mark a song as explicit like iTunes does (and read explicit iTunes tags).

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7872
Custom tags are just that.  The user creates/customizes them.  You can create the explicit tag yourself.  However, someone else might be able to address how it would read the iTunes tag.
See here for custom tags: http://musicbee.wikia.com/wiki/Custom_Tags
See here for virtual tags: http://musicbee.wikia.com/wiki/Virtual_Tags
Download the latest MusicBee v3.4 patch from here.
Download the latest MusicBee v3.5 beta patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3766
  • MB Version: 3.5.8211 P
I looked at this for myself earlier, and found the following problems:
the iTunes tag is only applied (by iTunes) to mp4 files not mp3's

you can set the tag up like so


the tag syntax is not in the form of 'Explicit' or 'Clean'
it uses;
0 or null = No Rating,
1 = Explicit,
2 = Clean

you could use those values to set up a highlighting rule for
Content Rating | is | 1

but if you want to actually have 'Explicit' or 'Clean' show up as words in a column, you would also need to use a virtual tag
Content Advisory: $IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"Explicit","Clean")))

I found it easier to just add 'Explicit' into my keywords and use a highlighting rule.
MusicBee and my library - Making bee-utiful music together


ost

  • Jr. Member
  • **
  • Posts: 91
I looked at this for myself earlier, and found the following problems:
the iTunes tag is only applied (by iTunes) to mp4 files not mp3's

you can set the tag up like so


the tag syntax is not in the form of 'Explicit' or 'Clean'
it uses;
0 or null = No Rating,
1 = Explicit,
2 = Clean

you could use those values to set up a highlighting rule for
Content Rating | is | 1

but if you want to actually have 'Explicit' or 'Clean' show up as words in a column, you would also need to use a virtual tag
Content Advisory: $IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"Explicit","Clean")))

I found it easier to just add 'Explicit' into my keywords and use a highlighting rule.

I got this message: The virtual tag expression cannot be parsed.
I'm not a computer genius. Where to put this tag Content Advisory: $IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"Explicit","Clean"))) ?

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10656
Did you also set up Content Rating as a custom tag?
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

ost

  • Jr. Member
  • **
  • Posts: 91
Damn, I'm just stupid  ;D  Yes, everything is fine now.
But I have another question is there any way to get rid off the Unknown Content Rating?

http://imgur.com/a/FhByW

to made it look like at iTunes:

http://imgur.com/a/2ZBWQ
Last Edit: October 29, 2016, 04:59:13 PM by ost

redwing

  • Guest
In place of " / <Content Rating>" part in that virtual tag, use this instead:

$IsNull(<Content Rating>,," / "<Content Rating>)

ost

  • Jr. Member
  • **
  • Posts: 91
In place of " / <Content Rating>" part in that virtual tag, use this instead:

$IsNull(<Content Rating>,," / "<Content Rating>)

If I put this tag - Content Advisory: $IsNull(<Content Rating>,," / "<Content Rating>) - it didn't change anything  :-\

redwing

  • Guest
This is your screenshot.



What I meant was the green color-boxed part of the virtual tag that seems you used for the bottom screenshot.

It appears you're entering "[Explicit]" or "[Clean]" directly to the "Content Rating" instead of following Bee-liever's suggestion.

I got this message: The virtual tag expression cannot be parsed.
I'm not a computer genius. Where to put this tag Content Advisory: $IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"Explicit","Clean"))) ?

What he meant was put "Content Advisory" in the name of the virtual tag and put the rest "$IsNull..." into formula box.

ost

  • Jr. Member
  • **
  • Posts: 91

What he meant was put "Content Advisory" in the name of the virtual tag and put the rest "$IsNull..." into formula box.

I did it all. And still see Uknown Content Rating.

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3766
  • MB Version: 3.5.8211 P

If this image is still current, you haven't set up 'Content Rating' as a custom tag as per phred and my instructions to the OP.
You need to do this first and let MB re-scan your library, otherwise <Content Rating> is always going to return an "unknown" value.
MusicBee and my library - Making bee-utiful music together

ost

  • Jr. Member
  • **
  • Posts: 91
If this image is still current, you haven't set up 'Content Rating' as a custom tag as per phred and my instructions to the OP.
You need to do this first and let MB re-scan your library, otherwise <Content Rating> is always going to return an "unknown" value.

This is what I did (only replaced Explicit and Clean with [E] and [C]). After it I made a full rescan (Tools - Advanced - Rescan All Files)

http://imgur.com/a/mxDJ4

Unknown Content Rating is still there :/

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3766
  • MB Version: 3.5.8211 P
I would guess that your 'Content Rating' tag has some other values beside Null,0,1 or 2.
Change your virtual formula to:
Code
$If(<Content Rating>=1,"[E]",$If(<Content Rating>)=2,"[C]",)
MusicBee and my library - Making bee-utiful music together

ost

  • Jr. Member
  • **
  • Posts: 91
I would guess that your 'Content Rating' tag has some other values beside Null,0,1 or 2.
Change your virtual formula to:
Code
$If(<Content Rating>=1,"[E]",$If(<Content Rating>)=2,"[C]",)

No changes :/