mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 05:01:10 -07:00
convert all listdir functions to unicode. Fixes #1189
This commit is contained in:
parent
868c8c36bf
commit
a7fcb7be9e
2 changed files with 12 additions and 12 deletions
|
@ -814,7 +814,7 @@ def Transcode_directory(dirName):
|
|||
os.unlink(file)
|
||||
except:
|
||||
pass
|
||||
if not os.listdir(newDir): # this is an empty directory and we didn't transcode into it.
|
||||
if not os.listdir(unicode(newDir)): # this is an empty directory and we didn't transcode into it.
|
||||
os.rmdir(newDir)
|
||||
newDir = dirName
|
||||
if not core.PROCESSOUTPUT and core.DUPLICATE: # We postprocess the original files to CP/SB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue