title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Rewrite tag values using manipulation rules - possible?

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

    • Jun 2013
    • 47

    Rewrite tag values using manipulation rules - possible?

    Hi,

    I'm trying to re-write a bunch of tags on about 10,000 files on an SD card as I'm trying to shorten the album title to something a bit more car-friendly.

    The album titles are formatted as 'Now That's What I Call Music! xx' where 'xx' is the zero-padded album number, 01 -> 99

    Basically I want to do this (in pseudo-code):
    IF LEFT(Album,29)='Now That's What I Call Music!'
    SET Album = LEFT(Album,4) + RIGHT(ALBUM,2)

    Whatever I've tried seems to always end up with all tags removed from the source files

    Is what I want to do possible?

    Cheers
  • mville
    dBpoweramp Guru

    • Dec 2008
    • 4021

    #2
    Re: Rewrite tag values using manipulation rules - possible?

    Try this:
    ID Tag Update R5 > Manipulate tab > Rule Based Manipulation, add the following:
    IF Album=[anyvalue]
    SET Album=[GRAB]1,4,[album][][RIGHT]2,[album][]

    Comment

    • Biggsy

      • Jun 2013
      • 47

      #3
      Re: Rewrite tag values using manipulation rules - possible?

      Cheers! That worked a treat - annoyingly what you've written there is *very* close to what I had but I guess I must have mucked up the brackets

      Comment

      • Biggsy

        • Jun 2013
        • 47

        #4
        Re: Rewrite tag values using manipulation rules - possible?

        So, although the above worked a treat, what II'd *really* like to do is to only apply that rule if the [Album] contains a certain value.

        So, if [Album] contains 'Now That's What I Call Music!' then apply the rule and rewrite the [Album] tag but leave the tag alone if it contains any other value.

        I've tried
        IF [GRAB]1,29[album][]='Now That's What I Call Music!'
        SET Album=[GRAB]1,4'[album][][RIGHT]2,[album][]

        But it does nothing at all. Also tried with double quotes, no quotes, but nothing seems to make any difference.

        Am I barking up completely the wrong tree?

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 44509

          #5
          Re: Rewrite tag values using manipulation rules - possible?

          The easiest way would to have:

          IF Album=[anyvalue]
          SET Album=[GRAB]1,4,[album][][RIGHT]2,[album][]

          and use Batch Converter, select all files, then list, sort on album, uncheck all, then select the first of Now.. and hold shift to select the last one in the list and put a check mark. Then convert.
          Spoon
          www.dbpoweramp.com

          Comment

          • Biggsy

            • Jun 2013
            • 47

            #6
            Re: Rewrite tag values using manipulation rules - possible?

            Well that's kind of what I have been doing to get around te issue, the only thing is I'm trying to do two operations:
            1) resize the artwork to a car-friendly size
            2) Shorten some album titles for car-friendly display proposes

            What I was trying to avoid was having to do two passes (one for artwork, one for tag contents) 'cos it take agesssss

            I guess for the responses that it's not possible to include an expression evaluation on the IF?

            Comment

            • Spoon
              Administrator
              • Apr 2002
              • 44509

              #7
              Re: Rewrite tag values using manipulation rules - possible?

              I do not think you can.
              Spoon
              www.dbpoweramp.com

              Comment

              • Biggsy

                • Jun 2013
                • 47

                #8
                Re: Rewrite tag values using manipulation rules - possible?

                OK, thanks. I'll stop trying in that case Thanks as always for the quick replies

                Comment

                • Dat Ei
                  dBpoweramp Guru

                  • Feb 2014
                  • 1786

                  #9
                  Re: Rewrite tag values using manipulation rules - possible?

                  What about storing all tracks of all 'Now That's What I Call Music!' albums in one folder and to rename all tracks to "x-y trackname", where is x is the number of the album and y the tracknumber within the album?


                  Dat Ei

                  Comment

                  • mville
                    dBpoweramp Guru

                    • Dec 2008
                    • 4021

                    #10
                    Re: Rewrite tag values using manipulation rules - possible?

                    Originally posted by Biggsy
                    OK, thanks. I'll stop trying in that case Thanks as always for the quick replies
                    You can achieve what you want in MP3Tag, a splendid piece of software.

                    Comment

                    • Biggsy

                      • Jun 2013
                      • 47

                      #11
                      Re: Rewrite tag values using manipulation rules - possible?

                      I do use MP3Tag, and agree it is very useful. Didn't know it could script so maybe i should take another look

                      Comment

                      Working...

                      ]]>