Catch null ratingKeys in plexWatch db importer.

Make sure we have a string when parsing the latinToAscii function.
This commit is contained in:
Tim van der Westhuizen 2015-11-27 10:45:25 +02:00
parent 776061605f
commit a8236222fb
2 changed files with 15 additions and 8 deletions

View file

@ -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