]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[fox] Add metadata extraction
authorgkoelln <gkoelln7@gmail.com>
Sat, 25 Mar 2017 13:12:25 +0000 (08:12 -0500)
committerSergey M <dstftw@gmail.com>
Sat, 25 Mar 2017 13:12:25 +0000 (21:12 +0800)
Add series, season number, episode number and episode.

youtube_dl/extractor/fox.py

index 9f2e5d0652a3266c08e83567a3b0f650ec624720..cc5d62ebc14fa32cca3f95f7f0971614cdc287e7 100644 (file)
@@ -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