Catch null ratingKeys in plexWatch db importer.
Make sure we have a string when parsing the latinToAscii function.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user