title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Add Last two digits in year to the mp3 title

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

    • Nov 2023
    • 6

    Add Last two digits in year to the mp3 title

    I would like to have all my mp3's include the year (YY) at the end of the titles. For example, Song Title (21) If the year is 9999, I don't want anything appended to the title. I tried the following in the Music Converter (ID Tag Update) but nothing happens.

    Title [IF!EQUALS]Year,9999,([RIGHT]2,year[])[]

    Is there somewhere specific this needs to be done? I saw an older post about using mp3tag but I would much prefer to use dBpoweramp if I can.

    Thank you for your help
  • dzangger67

    • Nov 2023
    • 6

    #2
    In MP3Tag, I came up with this:

    $if($neql(%year%,9999),$replace(%title%,($right(%y ear%,2)),) ($right(%year%,2)),%title%)

    I was hoping to prevent the year from being added over and over... Like Song Title (21) (21)

    It seems to work but I would love a solution using the batch conversion application.

    Thank you

    Comment

    • simbun
      dBpoweramp Enthusiast

      • Apr 2021
      • 90

      #3
      It looks like Rule Based Manipulation may be what you're after, the problem is the documentation is very sparse so I don't know if there's a Not Equals.

      Code:
      IF Year=9999
      SET TITLE=[Title] [RIGHT]2,[Year][]
      If year had been missing instead of 9999 you could have used:
      Code:
      IF Year=[anyvalue]

      Maybe someone can help with the syntax.

      Comment

      • vilsen
        dBpoweramp Enthusiast

        • Jul 2018
        • 187

        #4
        Try
        Code:
        [IF!EQUALS]year,9999,[title] ([RIGHT]2,[year][])[][IFEQUALS]year,9999,[title][]

        Comment

        • dzangger67

          • Nov 2023
          • 6

          #5
          thanks for your time in helping. I've tried many different things and nothing updates the Title tag. I guess it's going to be Mp3Tag. Thank you all very much.

          Comment

          • vilsen
            dBpoweramp Enthusiast

            • Jul 2018
            • 187

            #6
            I just tried the string in Asset and it works there at least. I'm on the road, so I can't test it in Music Converter though.

            But the string should work the same across all dBpoweramp programs?

            Comment

            • simbun
              dBpoweramp Enthusiast

              • Apr 2021
              • 90

              #7
              Originally posted by vilsen
              I just tried the string in Asset and it works there at least. I'm on the road, so I can't test it in Music Converter though.

              But the string should work the same across all dBpoweramp programs?
              As far as I can tell that syntax doesn't work in [ID Tag Update].[Rule Based Manipulation] or [ID Tag Update].[Additions].
              I've no doubt you could use 'Externally Script Tags' but that's overkill for a one-off update.

              Comment

              • vilsen
                dBpoweramp Enthusiast

                • Jul 2018
                • 187

                #8
                Thanks for enlightening me, I should have checked in MC before I posted.

                Comment

                • Spoon
                  Administrator
                  • Apr 2002
                  • 44511

                  #9
                  Code:
                  IF title=[anyvalue]
                  SET title=[title][IF!EQUALS]year,9999, ([RIGHT]2,[year][])[]
                  Works in [ID Tag Update] rule based manipulation
                  Spoon
                  www.dbpoweramp.com

                  Comment

                  • simbun
                    dBpoweramp Enthusiast

                    • Apr 2021
                    • 90

                    #10
                    The message I'd written earlier has disappeared, oh well.

                    Apologies vilsen, seems I'm in the wrong here. I defintely tested with the traditional syntax, but whatever it was I was trying resulted in a crash so I assumed it wasn't supported.

                    Comment

                    • dzangger67

                      • Nov 2023
                      • 6

                      #11
                      Originally posted by Spoon
                      Code:
                      IF title=[anyvalue]
                      SET title=[title][IF!EQUALS]year,9999, ([RIGHT]2,[year][])[]
                      Works in [ID Tag Update] rule based manipulation
                      Thank you for your help. The [anyvalue] part doesn't seem to work for me. I tried a very specific year and it worked; knowing all the years for this set of songs was 1982.

                      IF year=1982
                      SET title=[title][IF!EQUALS]year,9999, ([RIGHT]2,[year][])[]

                      I tried year>= 1960 and year>1960 and nothing is updated. Seems like this scripting is very particular with how it's written.


                      Comment

                      Working...

                      ]]>