[kid3] [Bug 507221] %{tracknumber} extracts 2 digits

2025-09-01 Thread Christian Weiske
https://bugs.kde.org/show_bug.cgi?id=507221

Christian Weiske  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
 Resolution|--- |NOT A BUG

--- Comment #2 from Christian Weiske  ---
Thank you for the explanation.

I did not create the file names myself but rather got them when downloading
them from the internet[1], and with missing meta data I wanted to use kid3 to
at least get a first set of meta data from the file names.

[1]
https://web.archive.org/web/20250121160302/http://fragezeichen.neuvertonung.de/

-- 
You are receiving this mail because:
You are watching all bug changes.

[kid3] [Bug 507221] %{tracknumber} extracts 2 digits

2025-07-19 Thread Urs Fleisch
https://bugs.kde.org/show_bug.cgi?id=507221

--- Comment #1 from Urs Fleisch  ---
If you use simple format codes such as "%{tracknumber}%{title}", Kid3 will try
to create a regular expression from it which should work in most cases. In this
case, the regular expression would be "([A-Za-z]?\d+[A-Za-z]?)([^-_\./
](?:[^/]*[^-_/ ])?)", which looks a bit complicated, but as I said, is thought
to catch most cases, for the track number, also "vinyl numbers" such as "1A"
would be supported. Unfortunately, your case is a bit special and not covered
by this general regular expression (and frankly, having no separator is a bit
weird because there might be tracks where the title starts with a digit and the
track number has more than one digit, so if you want to avoid spaces in your
file names I would rather replace them by underscores then removing them). For
special cases like yours, you can set the regular expression yourself, the
corresponding paragraph in the handbook starts with "Internally, a regular
expression". Thus, in your case, you could use the format

"%{track}(\d+)%{title}([^/]+)"

, which will yield the expected results.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kid3] [Bug 507221] %{tracknumber} extracts 2 digits

2025-07-19 Thread Christian Weiske
https://bugs.kde.org/show_bug.cgi?id=507221

Christian Weiske  changed:

   What|Removed |Added

   Platform|Other   |Debian testing

-- 
You are receiving this mail because:
You are watching all bug changes.