aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-11-20 06:21:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-11-20 06:21:05 +0100
commit86bd5f2ca9e17bb7f619595e02b28ca4954aeee8 (patch)
treee4f506c2ce848e4375361f461030d31b08415895 /youtube_dl
parent8694c60000d2aed2b37e10da0ffda132249ff10a (diff)
parent08bc37cdd02bc861a0b5271abb34623f0ebcd66c (diff)
Merge remote-tracking branch 'dz0ny/patch-1'
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index bd093add8..a2e3df1f9 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -717,7 +717,7 @@ class YoutubeDL(object):
return
if self.params.get('writeinfojson', False):
- infofn = filename + u'.info.json'
+ infofn = os.path.splitext(filename)[0] + u'.info.json'
self.report_writeinfojson(infofn)
try:
json_info_dict = dict((k, v) for k, v in info_dict.items() if not k in ['urlhandle'])