prevent early exit. Fixes #425

This commit is contained in:
clinton-hall 2014-06-15 21:29:58 +09:30
commit bbd841107d

View file

@ -343,9 +343,10 @@ def CharReplace(Name):
elif (Name[Idx] >= '\xA6') & (Name[Idx] <= '\xFF'): elif (Name[Idx] >= '\xA6') & (Name[Idx] <= '\xFF'):
encoding = 'iso-8859-15' encoding = 'iso-8859-15'
break break
if not encoding == nzbtomedia.SYS_ENCODING: if encoding and not encoding == nzbtomedia.SYS_ENCODING:
encoded = True encoded = True
return encoded, Name.decode(encoding).encode(nzbtomedia.SYS_ENCODING) Name = Name.decode(encoding).encode(nzbtomedia.SYS_ENCODING)
return encoded, Name
def convert_to_ascii(inputName, dirName): def convert_to_ascii(inputName, dirName):