1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Do not try to re-encode unicode filenames (Closes #13)

This commit is contained in:
Philipp Hagemeister 2011-09-07 09:35:22 +02:00
parent 6fc5b0bb17
commit cec3a53cbd

View file

@ -716,7 +716,7 @@ class FileDownloader(object):
if dn != '' and not os.path.exists(dn):
os.makedirs(dn)
except (OSError, IOError), err:
self.trouble(u'ERROR: unable to create directories: %s' % str(err))
self.trouble(u'ERROR: unable to create directory ' + unicode(err))
return
if self.params.get('writedescription', False):
@ -729,7 +729,7 @@ class FileDownloader(object):
finally:
descfile.close()
except (OSError, IOError):
self.trouble(u'ERROR: Cannot write description file: %s' % str(descfn))
self.trouble(u'ERROR: Cannot write description file ' + descfn)
return
if self.params.get('writeinfojson', False):
@ -747,7 +747,7 @@ class FileDownloader(object):
finally:
infof.close()
except (OSError, IOError):
self.trouble(u'ERROR: Cannot write metadata to JSON file: %s' % str(infofn))
self.trouble(u'ERROR: Cannot write metadata to JSON file ' + infofn)
return
try: