diff options
author | Sergey M <dstftw@gmail.com> | 2016-01-16 07:20:15 +0600 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2016-01-16 07:20:15 +0600 |
commit | ac25992bc74dec638cb33e8da088c325a03036a5 (patch) | |
tree | d1eec6fb22fed295616024d16fa104c520cc1d23 /youtube_dl/extractor/ae.py | |
parent | 30783c442de27dbab9f76a6293906daa8fa788d9 (diff) | |
parent | b4e44234bc481747b88c330b0e30a13dbc0fc99a (diff) |
Merge pull request #8246 from dstftw/initial-json-ld-metadata-support
Initial JSON-LD metadata extraction support
Diffstat (limited to 'youtube_dl/extractor/ae.py')
-rw-r--r-- | youtube_dl/extractor/ae.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ae.py b/youtube_dl/extractor/ae.py index a3b9f1ca4..3bc7c12fc 100644 --- a/youtube_dl/extractor/ae.py +++ b/youtube_dl/extractor/ae.py @@ -55,4 +55,9 @@ class AEIE(InfoExtractor): ] video_url = self._search_regex(video_url_re, webpage, 'video url') - return self.url_result(smuggle_url(video_url, {'sig': {'key': 'crazyjava', 'secret': 's3cr3t'}})) + info = self._search_json_ld(webpage, video_id, fatal=False) + info.update({ + '_type': 'url_transparent', + 'url': smuggle_url(video_url, {'sig': {'key': 'crazyjava', 'secret': 's3cr3t'}}), + }) + return info |