Community
    • Login

    Copy then paste elsewhere

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 573 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Cal MurphyC
      Cal Murphy
      last edited by

      Ok, here is a issue i could do with help solving its driving my ocd mad and i keep going over and over the same stuff etc.

      A Couple of years ago i ripped my cd collection at the time which was around 30,000+ cds, it now stands at 60,000+ using a program called dbpoweramp, which creates a log of the rip.

      Problem is over the past few years ive started to rip the cd differently leaving the log of the older files, different, and my ocd kicked in and now i am spending all of my time correcting the older logs, so any help would be appreciated.

      The older logs look like this.

      dBpoweramp Release 14.2 Digital Audio Extraction Log from 21 April 2012 12:59 PM

      Drive & Settings

      Ripping with drive ‘D: [PIONEER - DVD-RW DVR-218L]’, Drive offset: 6, Overread Lead-in/out: No
      AccurateRip: Active, Using C2: No, Cache: 1024 KB, FUA Cache Invalidate: No
      Pass 1 Drive Speed: Max, Pass 2 Drive Speed: Max
      Bad Sector Re-rip:: Drive Speed: Max, Maximum Re-reads: 34

      Encoder: FLAC -uncompressed -verify
      DSP Effects / Actions: -dspeffect1=“ID Tag Processing=-case={qt}3{qt} -exportart={qt}(none){qt} -importart={qt}(none){qt} -maxart={qt}(any){qt}”

      Extraction Log

      Track 1: Ripped LBA 0 to 6210 (1:22) in 0:05. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 01 - This Lullaby.flac
      AccurateRip: Accurate (confidence 13) [Pass 1]
      CRC32: 9E205167 AccurateRip CRC: 54281FCB (CRCv2) [DiscID: 016-0023795b-01bb7162-e10f8010-1]
      AccurateRip Verified Confidence 13 [CRCv2 54281fcb]
      AccurateRip Verified Confidence 90 [CRCv1 1cb88048]
      AccurateRip Verified Confidence 4 [CRCv2 7c20fb46], Using Pressing Offset -664
      AccurateRip Verified Confidence 17 [CRCv1 4c80a143], Using Pressing Offset -664

      Track 2: Ripped LBA 6210 to 14789 (1:54) in 0:07. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 02 - Medication.flac
      AccurateRip: Accurate (confidence 13) [Pass 1]
      CRC32: 71286C08 AccurateRip CRC: 7B52359C (CRCv2) [DiscID: 016-0023795b-01bb7162-e10f8010-2]
      AccurateRip Verified Confidence 13 [CRCv2 7b52359c]
      AccurateRip Verified Confidence 90 [CRCv1 86d7b26b]
      AccurateRip Verified Confidence 4 [CRCv2 68a7babb], Using Pressing Offset -664
      AccurateRip Verified Confidence 16 [CRCv1 69711451], Using Pressing Offset -664

      I need to copy duration of the track ie (1:22)

      so that it looks like this Queens Of The Stone Age - 01 - This Lullaby (1.22).flac

      rather than this

      Queens Of The Stone Age - 01 - This Lullaby.flac

      so i need to copy then paste but at the same time change the (1:22) to (1.22)

      I am currently doing it manually and it is taking all of my time, so any help, i am pretty new to this program it would be appreciated.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Cal Murphy
        last edited by Alan Kilborn

        @Cal-Murphy

        Ideally you would have noticed THIS before posting, but as this didn’t happen…

        One presumes that what you want to affect are two lines in all that:

        Track 1: Ripped LBA 0 to 6210 (1:22) in 0:05. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 01 - This Lullaby.flac
        Track 2: Ripped LBA 6210 to 14789 (1:54) in 0:07. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 02 - Medication.flac
        

        You want to copy those lines to another place, correct?

        Do a Mark operation by pressing Ctrl+m and then:

        Find: (?-is)^Track \d+: Ripped LBA.+?(\(\d+:\d+\)).+?\.flac$
        Search mode: Regular expression
        Checkmark: Wrap Around
        Action: Press Mark All button
        Action: Press Copy Marked Text button

        Paste the result where you’d like and then continue with the following using that as the new source.

        Then to add in your duration data, do:

        Find: (?-is)^Track \d+: Ripped LBA.+?(\(\d+:\d+\)).+\\(.+)\.flac$
        Replace: ${2} ${1}.flac
        Search mode: Regular expression
        Checkmark: Wrap Around
        Action: Press Replace All button

        1 Reply Last reply Reply Quote 3
        • guy038G
          guy038
          last edited by guy038

          Hello, @cal-murphy, @alan-kilborn and All,

          @cal-murphy, this can be achieved very easily with regexes, indeed !


          • Open your file in Notepad++

          So your INPUT text :

          Track 1: Ripped LBA 0 to 6210 (1:22) in 0:05. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 01 - This Lullaby.flac
          AccurateRip: Accurate (confidence 13) [Pass 1]
          CRC32: 9E205167 AccurateRip CRC: 54281FCB (CRCv2) [DiscID: 016-0023795b-01bb7162-e10f8010-1]
          AccurateRip Verified Confidence 13 [CRCv2 54281fcb]
          AccurateRip Verified Confidence 90 [CRCv1 1cb88048]
          AccurateRip Verified Confidence 4 [CRCv2 7c20fb46], Using Pressing Offset -664
          AccurateRip Verified Confidence 17 [CRCv1 4c80a143], Using Pressing Offset -664
          
          Track 2: Ripped LBA 6210 to 14789 (1:54) in 0:07. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 02 - Medication.flac
          AccurateRip: Accurate (confidence 13) [Pass 1]
          CRC32: 71286C08 AccurateRip CRC: 7B52359C (CRCv2) [DiscID: 016-0023795b-01bb7162-e10f8010-2]
          AccurateRip Verified Confidence 13 [CRCv2 7b52359c]
          AccurateRip Verified Confidence 90 [CRCv1 86d7b26b]
          AccurateRip Verified Confidence 4 [CRCv2 68a7babb], Using Pressing Offset -664
          AccurateRip Verified Confidence 16 [CRCv1 69711451], Using Pressing Offset -664
          
          • Open the Replace dialog ( Ctrl + H )

          • Uncheck all the box options

          • SEARCH (?x-is) ^ ( Track \x20 \d+ : .+? ( \( \d+ ) : ( \d\d \) ) .+ ) (?= \. flac $ )

          • REPLACE \1 \2.\3

          • Check the Wrap around option

          • Select the Regular expression search mode

          • Click on the Replace All button

          You should get your expected OUTPUT text, below :

          Track 1: Ripped LBA 0 to 6210 (1:22) in 0:05. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 01 - This Lullaby (1.22).flac
          AccurateRip: Accurate (confidence 13) [Pass 1]
          CRC32: 9E205167 AccurateRip CRC: 54281FCB (CRCv2) [DiscID: 016-0023795b-01bb7162-e10f8010-1]
          AccurateRip Verified Confidence 13 [CRCv2 54281fcb]
          AccurateRip Verified Confidence 90 [CRCv1 1cb88048]
          AccurateRip Verified Confidence 4 [CRCv2 7c20fb46], Using Pressing Offset -664
          AccurateRip Verified Confidence 17 [CRCv1 4c80a143], Using Pressing Offset -664
          
          Track 2: Ripped LBA 6210 to 14789 (1:54) in 0:07. Filename: C:\Users\Owner\Desktop\Rip\Queens Of The Stone Age - 2005 - Lullabies To Paralyze\Queens Of The Stone Age - 02 - Medication (1.54).flac
          AccurateRip: Accurate (confidence 13) [Pass 1]
          CRC32: 71286C08 AccurateRip CRC: 7B52359C (CRCv2) [DiscID: 016-0023795b-01bb7162-e10f8010-2]
          AccurateRip Verified Confidence 13 [CRCv2 7b52359c]
          AccurateRip Verified Confidence 90 [CRCv1 86d7b26b]
          AccurateRip Verified Confidence 4 [CRCv2 68a7babb], Using Pressing Offset -664
          AccurateRip Verified Confidence 16 [CRCv1 69711451], Using Pressing Offset -664
          

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 2
          • Cal MurphyC
            Cal Murphy
            last edited by

            Wow that worked a treat, thankyou.

            And thanks for all of the replies.

            Alan KilbornA 1 Reply Last reply Reply Quote 1
            • Alan KilbornA
              Alan Kilborn @Cal Murphy
              last edited by

              @Cal-Murphy

              Good info on the techniques used starts HERE.

              Cal MurphyC 1 Reply Last reply Reply Quote 3
              • Cal MurphyC
                Cal Murphy @Alan Kilborn
                last edited by

                @Alan-Kilborn

                Thanks for that i will have a look at it, when i have a bit of time available.

                1 Reply Last reply Reply Quote 0
                • guy038G guy038 referenced this topic on
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors