diff options
author | gkoelln <gkoelln7@gmail.com> | 2017-03-25 08:12:25 -0500 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2017-03-25 21:12:25 +0800 |
commit | 7aa0ee321b4095da7a2430f383bea773115e1491 (patch) | |
tree | cdef4b5cee56984cbb07b328c275a88893870d43 /youtube_dl | |
parent | e8e4cc5a6a3ad8bf94d9ff9e5bb2d72712e14c34 (diff) |
[fox] Add metadata extraction
Add series, season number, episode number and episode.
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/fox.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/fox.py b/youtube_dl/extractor/fox.py index 9f2e5d065..cc5d62ebc 100644 --- a/youtube_dl/extractor/fox.py +++ b/youtube_dl/extractor/fox.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from .adobepass import AdobePassIE from ..utils import ( + int_or_none, smuggle_url, update_url_query, ) @@ -47,9 +48,12 @@ class FOXIE(AdobePassIE): resource = self._get_mvpd_resource('fbc-fox', None, ap_p['videoGUID'], rating) query['auth'] = self._extract_mvpd_auth(url, video_id, 'fbc-fox', resource) - return { + info = self._search_json_ld(webpage, video_id, fatal=False) + info.update({ '_type': 'url_transparent', 'ie_key': 'ThePlatform', 'url': smuggle_url(update_url_query(release_url, query), {'force_smil_url': True}), 'id': video_id, - } + }) + + return info |