mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
prevent early exit. Fixes #425
This commit is contained in:
parent
ae82ce62a6
commit
bbd841107d
1 changed files with 3 additions and 2 deletions
|
@ -343,9 +343,10 @@ def CharReplace(Name):
|
|||
elif (Name[Idx] >= '\xA6') & (Name[Idx] <= '\xFF'):
|
||||
encoding = 'iso-8859-15'
|
||||
break
|
||||
if not encoding == nzbtomedia.SYS_ENCODING:
|
||||
if encoding and not encoding == nzbtomedia.SYS_ENCODING:
|
||||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue