title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Dynamic naming question

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

    • Apr 2009
    • 6

    Dynamic naming question

    Hi, I just purchased Reference yesterday because I want to convert my FLAC collection to MP3.
    All my files have the mediatype tag set which i (mis-)use for information about the release type (studio, compilation, live, etc...).

    My folder structure looks like this
    Code:
    (Album) Artist\[mediatype] [year] Album\MP3\...
    I use brackets [] for mediatype and year. Now the problem is the mediatype tag.
    Code:
    [[tag]mediatype[]]
    returns the correct value and puts it in brackets. So far so good. Even if I insert it into the complete scheme for non-compilations it will work:
    Code:
    [IFVALUE]album artist,[album artist],[artist][]\[[tag]mediatype[]] [[year]] [album]\[UPPER][extension][]\[artist] + [album] + [disc]-[SETLEN]2,,,[track][] + [title]
    Now I'm using a different scheme for compilations, so I add [IFCOMP] to distinguish:
    Code:
    [IFCOMP][IFVALUE]album artist,[album artist],-= SAMPLER =-[]\[[year]] [album]\[UPPER][extension][]\[album] + [disc]-[SETLEN]2,,,[track][] + [artist] + [title][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[[tag]mediatype[]] [[year]] [album]\[UPPER][extension][]\[artist] + [album] + [disc]-[SETLEN]2,,,[track][] + [title][]
    Instead of
    Code:
    Madonna\[Studio] [2003] Immaculate\MP3\Madonna + Immaculate + 1-05 + Holiday
    it will now return
    Code:
    Madonna\ [2003] Immaculate\MP3\Madonna + Immaculate + 1-05 + Holiday
    and the Compilation part creates two additional subfolders.

    Most likely it's a problem with brackets somewhere, but I just can't figure out. Anybody can help?
  • Spoon
    Administrator
    • Apr 2002
    • 44574

    #2
    Re: Dynamic naming question

    [tag]xxx[] would work and [xxx] would not unless it is a known tag such as [artist].

    Have you tried:

    ([tag]mediatype[])

    Just to see if the [ ] were not confusing it?
    Spoon
    www.dbpoweramp.com

    Comment

    • gambrinus

      • Apr 2009
      • 6

      #3
      Re: Dynamic naming question

      Originally posted by Spoon
      ([tag]mediatype[])
      Is working. Thanks for your help! Bug?
      I would have to rename my whole collection, any chance this will work?

      Comment

      Working...

      ]]>