Browse Source

[ae] Use JSON-LD for TV series metadata

totalwebcasting
Sergey M․ 9 years ago
parent
commit
b4e44234bc
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/ae.py

+ 6
- 1
youtube_dl/extractor/ae.py View File

@ -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

Loading…
Cancel
Save