mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-29 19:18:28 -07:00
parent
fdaa007756
commit
0d7c59f1f0
1 changed files with 5 additions and 4 deletions
|
@ -53,10 +53,11 @@ def move_file(mediafile, path, link):
|
||||||
title = os.path.splitext(os.path.basename(mediafile))[0]
|
title = os.path.splitext(os.path.basename(mediafile))[0]
|
||||||
new_path = os.path.join(path, sanitize_name(title))
|
new_path = os.path.join(path, sanitize_name(title))
|
||||||
|
|
||||||
try:
|
# Removed as encoding of directory no-longer required
|
||||||
new_path = new_path.encode(core.SYS_ENCODING)
|
#try:
|
||||||
except Exception:
|
# new_path = new_path.encode(core.SYS_ENCODING)
|
||||||
pass
|
#except Exception:
|
||||||
|
# pass
|
||||||
|
|
||||||
# Just fail-safe incase we already have afile with this clean-name (was actually a bug from earlier code, but let's be safe).
|
# Just fail-safe incase we already have afile with this clean-name (was actually a bug from earlier code, but let's be safe).
|
||||||
if os.path.isfile(new_path):
|
if os.path.isfile(new_path):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue