Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2850

%_filename% tag displays as "_mp3" in preview

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.12
    • 2.11
    • None
    • macOS Monterey 12.7.4

      The file naming preview of a script ending in %_filename% displays as "_mp3", when it should display as a filename like "ticket_to_ride.mp3" or "track05.mp3".

       

      How to reproduce

      1. Run Picard. Picard menu… Preferences…. Tab "File naming". Check box "Rename files when saving".
      2. Click "Edit file naming script…" button. File naming script edit window appears.
      3. Enter a naming script which has various directory path values, but ends in "/%_filename%".
      4. Look at the box at the bottom of the script editor, labelled "After".

      Observed behaviour

      Both "After" entries, corresponding to "ticket_to_ride.mp3" and "track05.mp3", in fact end in "/_mp3".

      Expected behaviour

      Both "After" entries end with their respective filenames, i.e. "/ticket_to_ride.mp3" and "/track05.mp3".

      Discussion

      When I enter any text in the script between the "/" and "%_filename%", the preview ending changes from "_mp3" to ".mp3". For instance, when I change the end of the script to "/P%_filename%", the "After" entries change to "/P.mp3".

      Possibly related: PICARD-2219, Empty file naming script causes files to be renamed to _ext. Fixed in 2021 with Picard version 2.6.3.

      According to Picard docs "File Variables", "_filename" contains "The name of the file without extension". In my observation Picard 2.11 includes the extension in the value of "_filename".

       

       

       

            outsidecontext Philipp Wolfer
            jim delahunt Jim DeLaHunt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                2.12