aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2011-09-07 09:35:22 +0200
committerPhilipp Hagemeister <[email protected]>2011-09-07 09:35:22 +0200
commitcec3a53cbdc84bf83062a1016a7c6bd77393a9ea (patch)
tree84cf5464b041c7ffea624fdc12a67abcded5146e
parent6fc5b0bb17f814579c8e3b130a4ff0824333e959 (diff)
downloadyoutube-dl-cec3a53cbdc84bf83062a1016a7c6bd77393a9ea.tar.gz
youtube-dl-cec3a53cbdc84bf83062a1016a7c6bd77393a9ea.zip
Do not try to re-encode unicode filenames (Closes #13)
-rwxr-xr-xyoutube-dl6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube-dl b/youtube-dl
index 135e05c0f..2a116042e 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -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: