title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Square brackets in target name causing problems

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

    • Jan 2021
    • 6

    Square brackets in target name causing problems

    Hi there, I'm in the process of changing my naming convention for files stored on my computer and the new format has the album artist or the artist in square brackets at the end of the file name.

    I can't quite make this work within CD Ripper though and would appreciate any wise words.

    What I currently have is:
    [album]\[track] [IFVALUE]composer,[composer] - ,[][title][IFVALUE]album artist, [[album artist]], [[artist]][]

    This is fine if there is an album artist, but if there isn't then it puts a "[]" at the end of the filename.

    I think the first [[ pair is escaping the IFVALUE logic.

    I was wondering if there was something like <leftsquarebracket_> that I could use in a similar fashion too <comma_>.

    Thanks for your help ... Peter
  • Idioversal

    • Jan 2021
    • 6

    #2
    Re: Square brackets in target name causing problems

    Well, after realising how old my version is, I have upgraded which has inevitably changed the behaviour quite a lot!
    My biggest problem now is that the extension is missing from the files - i.e. "abc._" as opposed to "abc.flac"

    Comment

    • Idioversal

      • Jan 2021
      • 6

      #3
      Re: Square brackets in target name causing problems

      Sorry all, I'm being a dumbass - it seems that the extension is not applied until the rip is complete. Problem solved.
      Cheers ... Peter

      Comment

      • Idioversal

        • Jan 2021
        • 6

        #4
        Re: Square brackets in target name causing problems

        Hello all, well it seems like I'm having a conversation with myself here!! Anyway, the initial problem with the square brackets is still there. Here are some screen shots showing my formula working on most rips, but then not working (i.e. ending the filename with []) on a specific rip, then showing the simple edit needed to make it work on that CD and then showing that that edit screws everything up on other rips.
        Click image for larger version

Name:	Naming screen - showing my formula making normal naming correct.jpg
Views:	1
Size:	92.7 KB
ID:	294394
        Click image for larger version

Name:	Naming screen - showing my formula making specific naming incorrect.jpg
Views:	1
Size:	93.7 KB
ID:	294395
        Click image for larger version

Name:	Naming screen - showing edits making specific naming correct.jpg
Views:	1
Size:	93.8 KB
ID:	294396
        Click image for larger version

Name:	Naming screen - showing edits making normal naming incorrect.jpg
Views:	1
Size:	91.5 KB
ID:	294397
        As I said in my original post, I think a solution would be the square bracket equivalent to <comma_> if such a thing exists.
        Thanks for reading... Peter

        Comment

        • garym
          dBpoweramp Guru

          • Nov 2007
          • 5890

          #5
          Re: Square brackets in target name causing problems

          I don't have an answer, but I see the problem. Anything inside brackets ("[anything]") is likely treated as a reference to a tag because of the way the dynamic naming code works. What if you enter like the following so the brackets are treated not as part of the code:

          "["[artist]"]"

          or

          '['[artist]']'

          Comment

          • Idioversal

            • Jan 2021
            • 6

            #6
            Re: Square brackets in target name causing problems

            I think both "[" and '[' result in '[' appearing in the file name.
            [[] sometimes results in [ but sometimes screws with the formula in a new and exciting way.

            I don't really understand user defined tags, but maybe they could be utilized - define a tag as [ and then use it in a formula?
            Peter

            Comment

            • Spoon
              Administrator
              • Apr 2002
              • 44509

              #7
              Re: Square brackets in target name causing problems

              [album]\[track] [IFVALUE]composer,[composer] - ,[][title][IFVALUE]album artist, [album artist], [artist][]
              Spoon
              www.dbpoweramp.com

              Comment

              • garym
                dBpoweramp Guru

                • Nov 2007
                • 5890

                #8
                Re: Square brackets in target name causing problems

                Originally posted by Idioversal
                I think both "[" and '[' result in '[' appearing in the file name.
                [[] sometimes results in [ but sometimes screws with the formula in a new and exciting way.

                I don't really understand user defined tags, but maybe they could be utilized - define a tag as [ and then use it in a formula?
                Peter
                figured it out. For example, the following naming string:
                [track] - [title] [UPPER][[artist][UPPER]][][]

                produces this filename for the first track on The Beatles, Abbey Road album

                01 - Come Together [The Beatles].flac

                The key is I include:
                [UPPER]string[]

                in the dynamic naming string, and replace "string" with [ to get the open bracket, then use the same thing on other side of [artist] to get ] (replace string with ])
                Last edited by garym; January 07, 2021, 05:16 PM.

                Comment

                • Idioversal

                  • Jan 2021
                  • 6

                  #9
                  Re: Square brackets in target name causing problems

                  That seems to work a treat - thank you so much!!

                  The current formula is:
                  [album]\[track] [IFVALUE]composer,[composer] - ,[][title][IFVALUE]album artist, [UPPER][[][album artist][UPPER]][], [UPPER][[][artist][UPPER]][][]

                  Peter
                  Last edited by Idioversal; January 07, 2021, 05:30 PM.

                  Comment

                  Working...

                  ]]>