encode filename before opening
This commit is contained in:
parent
909b0904d4
commit
c2e0129438
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def make_meta_file(file, url, params = {}, flag = Event(),
|
||||||
if flag.isSet():
|
if flag.isSet():
|
||||||
return
|
return
|
||||||
check_info(info)
|
check_info(info)
|
||||||
h = open(f, 'wb')
|
h = open(f.encode(encoding), 'wb')
|
||||||
data = {'info': info, 'announce': url.strip(), 'creation date': int(time())}
|
data = {'info': info, 'announce': url.strip(), 'creation date': int(time())}
|
||||||
|
|
||||||
if 'comment' in params and params['comment']:
|
if 'comment' in params and params['comment']:
|
||||||
|
|
Loading…
Add table
Reference in a new issue