mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
Perform Unicode fixup before tags fixup
fixup_tags() must not be exposed to non-UTF-8 strings as it runs some of the strings through Unicode normalization for sort tags.
This commit is contained in:
parent
b2afcc9b91
commit
a116e2ad1f
@ -381,10 +381,10 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
|
|||||||
if (!mfi.media_kind)
|
if (!mfi.media_kind)
|
||||||
mfi.media_kind = 1; /* music */
|
mfi.media_kind = 1; /* music */
|
||||||
|
|
||||||
fixup_tags(&mfi);
|
|
||||||
|
|
||||||
unicode_fixup_mfi(&mfi);
|
unicode_fixup_mfi(&mfi);
|
||||||
|
|
||||||
|
fixup_tags(&mfi);
|
||||||
|
|
||||||
if (mfi.id == 0)
|
if (mfi.id == 0)
|
||||||
db_file_add(&mfi);
|
db_file_add(&mfi);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user