aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-09 04:31:18 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-09 04:31:18 +0100
commita0d96c9843da915bee28c29993d6e1a4e2d21d9f (patch)
tree7d76edf5ac10be1cba93a37e94ec83bcb075bc9b
parent2a18bc9a4b2b0304a234091e2169283181892b4d (diff)
Add filename to --dump-json output (Fixes #1908)
-rw-r--r--youtube_dl/YoutubeDL.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index fc36be56f..3fbbf3ba0 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -751,6 +751,7 @@ class YoutubeDL(object):
if self.params.get('forceformat', False):
self.to_stdout(info_dict['format'])
if self.params.get('forcejson', False):
+ info_dict['_filename'] = filename
self.to_stdout(json.dumps(info_dict))
# Do nothing else if in simulate mode