title
Products            Buy            Support Forum            Professional            About            Codec Central
 

How do I make the following Naming path?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PepsiCan
    dBpoweramp Enthusiast
    • Apr 2014
    • 106

    How do I make the following Naming path?

    Hi

    To correctly archive my files from ripped CDs, I need code to create the following naming path. I'm not quite sure how to do it so help is very much appreciated.

    IF genre = classical
    then IFCOMP
    then 1_Classical\[album]\[IFMULTI][disc]-[][track]-[title], [composer], [artist]-[disc_total]
    else [composer][]\[album]\[IFMULTI][disc]-[][track]-[title], [composer], [artist]-[disc_total]
    else IFCOMP
    then 2_Modern\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
    else If [album artist sort] has value
    then [album artist sort][][]\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
    else [artist sort][][]\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]

    Some parts I've managed to write into code, but others... :-)

    Thanks!
  • mville
    dBpoweramp Guru
    • Dec 2008
    • 4015

    #2
    Re: How do I make the following Naming path?

    I'm trying to understand the above. Is this pseudo-code correct:

    IF genre = classical Then
    IFCOMP Then
    1_Classical\[album]\[IFMULTI][disc]-[][track]-[title], [composer], [artist]-[disc_total]
    Else
    [composer]\[album]\[IFMULTI][disc]-[][track]-[title], [composer], [artist]-[disc_total]
    Endif
    Else
    IFCOMP then
    2_Modern\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
    Else
    If [album artist sort] has a value Then
    [album artist sort]\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
    Else
    [artist sort]\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
    Endif
    Endif
    Endif
    Last edited by mville; 03-21-2016, 05:14 PM.

    Comment

    • PepsiCan
      dBpoweramp Enthusiast
      • Apr 2014
      • 106

      #3
      Re: How do I make the following Naming path?

      Originally posted by mville
      I'm trying to understand the above. Is this pseudo-code correct:

      IF genre = classical Then
      IFCOMP Then
      1_Classical\[album]\[IFMULTI][disc]-[][track]-[title], [composer], [artist]-[disc_total]
      Else
      [composer]\[album]\[IFMULTI][disc]-[][track]-[title], [composer], [artist]-[disc_total]
      Endif
      Else
      IFCOMP then
      2_Modern\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
      Else
      If [album artist sort] has a value Then
      [album artist sort]\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
      Else
      [artist sort]\[album]\[IFMULTI][disc]-[][track]-[title], [artist]-[disc_total]
      Endif
      Endif
      Endif
      Yes, correct.

      Comment

      Working...

      ]]>