[cache] Fix writing to paths with unicode characters
[youtube-dl] / youtube_dl / YoutubeDL.py
index 5c875b4972f61e2ce925c40d13a94fa53fb059d3..94c50903c737ea298b44e772b55500766b2f904b 100755 (executable)
@@ -1001,7 +1001,7 @@ class YoutubeDL(object):
             else:
                 self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)
                 try:
-                    write_json_file(info_dict, encodeFilename(infofn))
+                    write_json_file(info_dict, infofn)
                 except (OSError, IOError):
                     self.report_error('Cannot write metadata to JSON file ' + infofn)
                     return