mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
remove .encode which creates byte vs string comparison issues. Fixes #1582
This commit is contained in:
parent
ac7e0b702a
commit
19c3e1fd85
3 changed files with 36 additions and 36 deletions
|
@ -20,10 +20,10 @@ def sanitize_name(name):
|
|||
|
||||
# remove leading/trailing periods and spaces
|
||||
name = name.strip(' .')
|
||||
try:
|
||||
name = name.encode(core.SYS_ENCODING)
|
||||
except Exception:
|
||||
pass
|
||||
#try:
|
||||
# name = name.encode(core.SYS_ENCODING)
|
||||
#except Exception:
|
||||
# pass
|
||||
|
||||
return name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue