diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-09 04:31:18 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-09 04:31:18 +0100 |
commit | a0d96c9843da915bee28c29993d6e1a4e2d21d9f (patch) | |
tree | 7d76edf5ac10be1cba93a37e94ec83bcb075bc9b | |
parent | 2a18bc9a4b2b0304a234091e2169283181892b4d (diff) |
Add filename to --dump-json output (Fixes #1908)
-rw-r--r-- | youtube_dl/YoutubeDL.py | 1 |
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 |