Opened 15 years ago
Closed 15 years ago
#8665 closed defect (fixed)
TFW/MythBackend will not write non-ASCII filenames
Reported by: | Owned by: | robertm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.24 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | metadata unicode |
Cc: | Ticket locked: | no |
Description
I see this when grabbing metadata for Pokémon episodes (notice the accent over the 'e').
The metadata look up with ttvdb.py works fine. Mythfrontend displays the title correctly. Also coverart and fanart are downloaded and saved to the disk (into their respective storage groups). But they have filenames like: "Pok?mon Season 1_coverart.jpg" & "Pok?mon Season 1_fanart.jpg" The 'é' character is not saved correctly. Mythfrontend/mythbackend can not find the files when it tries to display them because it is looking for the special character. The files work fine when I open them manually.
For what it is worth here is how nautilus (gnome file manager) displays these file names: "Pok?mon Season 1_coverart.jpg (invalid encoding)".
The errors in mythfrontend log look like:
2010-07-16 19:32:46.227 MythUIHelper, Error: LoadScaleImage(myth://Fanart@192.168.0.215:6543/Pokémon Season 1_fanart.jpg) failed to load image
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
Component: | Plugin - MythVideo → MythTV - General |
---|
comment:2 by , 15 years ago
Summary: | metadata image downloads can't handle special unicode characters in title → TFW/MythBackend will not write non-ASCII filenames |
---|
by , 15 years ago
Allow TFW to write out files with local 8 bit charset.
comment:3 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
User reported success with this patch. I've been using it without issue for almost two years.
comment:4 by , 15 years ago
Owner: | changed from | to
---|
comment:5 by , 15 years ago
Milestone: | unknown → 0.24 |
---|
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [25628]) Allow ThreadedFileWriter to write out filenames using the local 8 Bit charset. Fixes issues with artwork filenames being broken or truncated when they contained non-Ascii character sets. Have run this patch for several years without issue. Credit to Mike Dean and Chris Pinkham for helping me figure out what the issue was way back then, scorn to me if it breaks anything. Fixes #8665.
Not a MythVideo Issue, MythBackend/ThreadedFileWriter will not write out non-ASCII filenames. Patch attached, changing component.