title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Using custom tags in preformat

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thr4121

    • Aug 2020
    • 11

    Using custom tags in preformat

    Hi,

    can you use custom tags in preformat? I have added group to the database fields. Now I wanted to use it in preformat like this:

    Code:
    preformat:=album:=[album] ([group])
    But in the browse tree, all the albums have just the literal value ([group]) attached.

    Is it somehow possible to achieve what I want?


    Best regards,
    thr4121
  • Spoon
    Administrator
    • Apr 2002
    • 44579

    #2
    Re: Using custom tags in preformat

    Try:

    preformat:=album:=[album] ([tag]group[])
    Spoon
    www.dbpoweramp.com

    Comment

    • thr4121

      • Aug 2020
      • 11

      #3
      Re: Using custom tags in preformat

      Thanks! That works perfectly.

      Maybe you could "promote" it in the documentation (https://dbpoweramp.com/Help/dMC/Naming.htm). I looked again and it's mentioned there, but only in the context of [REPLACE], and I either overlooked it or didn't make the connection.

      Comment

      • thr4121

        • Aug 2020
        • 11

        #4
        Re: Using custom tags in preformat

        Thanks! Works perfectly.

        Comment

        • PeterP
          Super Moderator
          • Jul 2011
          • 1471

          #5
          Re: Using custom tags in preformat

          Code:
          preformat:=album:=[album][IFVALUE][tag]boxtitle[], - True, - False[]
          Tested, works for me, true/false suffixed depending on boxtitle tag being present.
          Also tested your other lines, all seems to work as designed, assuming relevant tags are present in your music files. Only issue I found was with:
          Code:
          [IFVALUE][tag]remasterdate[], [[tag]remasterdate[]][]
          ... where intended use of brackets around [remasterdate] appears to clash with [IFVALUE].

          Note that [boxtitle] isn't going to work, only a set of predefined tags is recognized in [brackets], others need [tag]tag_name_here[].


          Please note that - by design - preformat lines operate on original tags, not tags manipulated by previous preformat lines.
          If you introduce boxtitle in another preformat line rather than have it in your tags, it will not be seen by following preformat lines.
          If your use case clashes with this logic, I'll rethink it.

          Comment

          Working...

          ]]>