[F] False duplicate detection in loop limit

Help http://help.mp3tag.de/options_export.html says:

yet here only one of the two (non-duplicate) titles gets output:

ISTM program is comparing case-insensitively and either the program or the Help ("duplicate") is incorrect.

If anyone knows a workaround, please say.

There is a workaround which can detect differences in lower / upper case, ...
but cannot handle diacritics.

__Export.loop.case.respect.mte ( 845bytes ) Number of downloads: 1

__Export.loop.case.respect.mte (1.15 KB)
DD.20140323.0953.CET

__Export.loop.case.respect.mte (1.15 KB)

Thanks, D. In my sample script given, I replaced

 $loop(%title%,1)

with your

 $loop(%TITLE%$regexp($regexp(%TITLE%,'\l','0'),'\u','1'),1)

and that gave case-insensitivity as I required.

Re diacritics, my full script is is intended to output a playlist containing all tracks showing deviation in title, e.g. having title differing from that of any track in presence/absence of (Spanish) diacritics or any character other than letters or digits, or letter case. With your case fix, that script is now:

#EXTM3U
$loop($regexp($replace($lower(%title%),á,a,é,e,í,i,ó,o,ú,u,n,ñ),'[^a-zA-Z0-9]',))$loop(%TITLE%$regexp($regexp(%TITLE%,'\l','0'),'\u','1'),1)$loopend()$ifgreater(%_max_counter%,1,$loop(%title%)#EXTINF:%_lentgh%,%artist% - %title%
%_path%
$loopend()
,)$loopend()

From this list of titles

A bailar
A bailar
Adios muchachos
Adios, muchachos
Chique
Chiqué
La Cumparsita
La cumparsita
Vida Mía
Vida mía

it puts these in a EXTM3U playlist

Adios muchachos
Adios, muchachos
Chique
Chiqué
La Cumparsita
La cumparsita
Vida Mía
Vida mía

.

I then load the playlist into Mp3tag for manual correction of the faulty titles.

I've fixed this with Mp3tag v2.59.

[2014-04-13]  FIX: export field parameter at $loop() was compared case-insensitive which caused unexpected behavior at duplicate detection.

Thanks for reporting!

Kind regards
Florian

Thanks.

FTR, this makes V2.59 incompatible with previous versions when performing some export configs.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.