mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Catch null ratingKeys in plexWatch db importer.
Make sure we have a string when parsing the latinToAscii function.
This commit is contained in:
parent
776061605f
commit
a8236222fb
2 changed files with 15 additions and 8 deletions
|
@ -92,13 +92,15 @@ def latinToAscii(unicrap):
|
|||
}
|
||||
|
||||
r = ''
|
||||
for i in unicrap:
|
||||
if ord(i) in xlate:
|
||||
r += xlate[ord(i)]
|
||||
elif ord(i) >= 0x80:
|
||||
pass
|
||||
else:
|
||||
r += str(i)
|
||||
if unicrap:
|
||||
for i in unicrap:
|
||||
if ord(i) in xlate:
|
||||
r += xlate[ord(i)]
|
||||
elif ord(i) >= 0x80:
|
||||
pass
|
||||
else:
|
||||
r += str(i)
|
||||
|
||||
return r
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue