title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Dynamic Naming script help

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

    • Nov 2024
    • 3

    Dynamic Naming script help

    Hi everybody,

    first time user of the forum here - thank you for considering my question.

    I am stuck in trying to set up CD Ripper's Dynamic Naming in a way that emulates what my existing Apple Library looks like. (I am switching from using Apple Music to utilizing CD Ripper, and Plex to play my music library locally and over the network.)

    Here's what I'm trying to achieve:
    • For single-disc albums:
      • Album Artist/Album Title/01 Title
    • For multi-disc albums:
      • Album Artist/Album Title/1-01 Title
      • And continuing in the same folder with 2-01 Title
    • Same for Compilations, only substitute “Compilation” for “Album Artist”
    Mostly where I’m stuck is that I only want a [Disc] to show up for multi-disc albums, but not for the single-disc albums.

    Here’s as far as I got in modifying the default script:

    [MAXLENGTH]80,[IFVALUE]album artist,[album artist],[IFCOMP]Various Artists[][IF!COMP][artist][][][]/[MAXLENGTH]80,[album][]/[MAXLENGTH]80,[disc]-[track] [title][]

    But that now puts a [Disc] also for single disc albums, which I'd like to avoid.

    Thank you in advance to anyone willing to point me the right way!
  • garym
    dBpoweramp Guru

    • Nov 2007
    • 5887

    #2
    I use essentially your desired organization and use the following naming string. Automatically handles single and multi disks and album artist vs artist and compilations. However note that the [disc] issue you mention is not because of naming string. It is because of a setting in dbpa. Under CD ripper options, metadata and ID Tag options, set the "Multi CD Add Disc to Album" to 'never'.

    [MAXLENGTH]240,[IFCOMP]Compilations\[album][IFMULTI]\Disc [disc][]\[track] - [title] - [artist][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[album][IFMULTI]\Disc [disc][]\[track] - [title][][]

    Comment

    • Hppnstnce

      • Nov 2024
      • 3

      #3
      Thank you, garym!

      I checked the setting "Multi CD Add Disc to Album", and it was already set to 'never'.

      Using the "never" setting and your script, I get the following:

      For single disc:
      Album Artist/Album Title/05 - Title (that works)

      For compilations:
      Compilations/Album Title/05 - Title - Artist (that works)

      For multi-disc:
      Album Artist/Album Title/Disc 2/05 - Title

      That's where it's still not doing what I want it to do. I don't want an extra folder for every disc; I'd like the disc count to be part of the file name, such as:
      Album Artist/Album Title/[DISC] 05 - Title

      I realize I don't understand the scripting language well enough to tweak this script to achieve that.

      For instance, I tried:
      [MAXLENGTH]240,[IFCOMP]Compilations\[album][IFMULTI]\[]\[disc] [track] - [title] - [artist][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[album][IFMULTI]\[]\[disc] - [track] - [title][][]

      That does remove the extra folder; but then I do get an extra disc count even for single disc albums, such as:
      Album Artist/Album Title/1 - 05 - Title


      Comment

      • garym
        dBpoweramp Guru

        • Nov 2007
        • 5887

        #4
        try this. If you don't like the period after the disc number. Delete the period after [disc] in the two locations below and replace period with a space.

        [MAXLENGTH]240,[IFCOMP]Compilations\[album]\[IFMULTI]\[disc].[][track] - [title] - [artist][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[album]\[IFMULTI]\[disc].[][track] - [title][][]

        Comment

        • Hppnstnce

          • Nov 2024
          • 3

          #5
          That did it! Than you so much, Garym!

          I did a little bit of minor tweaking myself to get it to where it would completely match what I have. Just resharing in case there are others in the future who are looking for an algorithm that reproduces what Apple Music does:

          [MAXLENGTH]240,[IFCOMP]Compilations\[album]\[IFMULTI]\[disc].[][track] [title] - [artist][][IF!COMP][IFVALUE]album artist,[album artist],[artist][]\[album]\[IFMULTI]\[disc]-[][track] [title][][]

          Comment

          • garym
            dBpoweramp Guru

            • Nov 2007
            • 5887

            #6
            looks good. Note that you have a period after disc (e.g., 2.09 song title.flac) for compilations but are using a dash after disc for non compilations (e.g., 2-09 song title.flac). Seems like you'd want those to be consistent.

            Comment

            Working...

            ]]>