Title renamed to portion of filename


#1

My mp3 file names follow the convention: yymmdd Author {Series} Description

For example: 070603 John Doe {Sunday Morning Series} This is small description.mp3

I have 3000 files. Is there a way where I can use regular expressions to have the Title be the Description of every file. In the example above, the title would be: This is small description

Thanks,

Ken


#2

Anyone have answers?


#3

I don't understand exactly, what you want to do. :astonished:

Which ID3tag should contain which part of the filename?

If you write "...Title be the Description of every file" - what kind of description? Do you mean the COMMENT-Tag of every file?

Please make an example with the desired tags and content from your filename.


#4

Hi,

The 'Title' tag should contain a portion of the filename.
Another Example: 070203wABC {Name of Series}XYZ.mp3
XYZ is the 'Title'
The 'Title' should be that which is after the curly brackets.

Thanks,

Ken


#5
  1. This should work:
    Convert/Filename-Tag
    Formatstring: %DUMMY%} %TITLE%

  2. This should work:
    Action #1:
    Action type: Format value
    Field: TITLE
    Formatstring: $regexp(%_filename%,^(.} )(.)$,$2)

  3. This should work:
    Action #1:
    Action type: Format value
    Field: TITLE
    Formatstring: $regexp($regexp(%_FILENAME%,.*} ,),.mp3$,)

  4. This should work:
    Action #1:
    Action type: Format value
    Field: TITLE
    Formatstring: %_FILENAME%
    Action #2:
    Action type: Replace with regular expression
    Field: TITLE
    Regular expression: ^(.} )(.)(.mp3)$
    Replace matches with: $2

[ ] case-sensitive comparison

The contents of %_FILENAME% seems to be ambigious.
In cases 1, 2 there is no file extension '.mp3' included but in cases 3, 4 there is a file extension.

DD.20070711.2025.MEST


#6

Thank you for your support. I have studied the regular expressions using the examples shown and have come up with the following that did what I needed:

$regexp(%filename%,^(.{(.)})(.*)$,$3$2)