aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/nfl.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/nfl.py')
-rw-r--r--hypervideo_dl/extractor/nfl.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/hypervideo_dl/extractor/nfl.py b/hypervideo_dl/extractor/nfl.py
index 821276a..29c53d5 100644
--- a/hypervideo_dl/extractor/nfl.py
+++ b/hypervideo_dl/extractor/nfl.py
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
import re
from .common import InfoExtractor
@@ -56,8 +53,7 @@ class NFLBaseIE(InfoExtractor):
)
)/
'''
- _VIDEO_CONFIG_REGEX = r'<script[^>]+id="[^"]*video-config-[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}[^"]*"[^>]*>\s*({.+})'
- _WORKING = False
+ _VIDEO_CONFIG_REGEX = r'<script[^>]+id="[^"]*video-config-[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}[^"]*"[^>]*>\s*({.+});?\s*</script>'
def _parse_video_config(self, video_config, display_id):
video_config = self._parse_json(video_config, display_id)
@@ -69,13 +65,12 @@ class NFLBaseIE(InfoExtractor):
'Anvato', mcp_id)
else:
media_id = item.get('id') or item['entityId']
- title = item['title']
+ title = item.get('title')
item_url = item['url']
info = {'id': media_id}
ext = determine_ext(item_url)
if ext == 'm3u8':
info['formats'] = self._extract_m3u8_formats(item_url, media_id, 'mp4')
- self._sort_formats(info['formats'])
else:
info['url'] = item_url
if item.get('audio') is True:
@@ -111,6 +106,9 @@ class NFLIE(NFLBaseIE):
'timestamp': 1608009755,
'thumbnail': r're:^https?://.*\.jpg$',
'uploader': 'NFL',
+ 'tags': 'count:6',
+ 'duration': 157,
+ 'categories': 'count:3',
}
}, {
'url': 'https://www.chiefs.com/listen/patrick-mahomes-travis-kelce-react-to-win-over-dolphins-the-breakdown',
@@ -120,7 +118,8 @@ class NFLIE(NFLBaseIE):
'ext': 'mp3',
'title': 'Patrick Mahomes, Travis Kelce React to Win Over Dolphins | The Breakdown',
'description': 'md5:12ada8ee70e6762658c30e223e095075',
- }
+ },
+ 'skip': 'HTTP Error 404: Not Found',
}, {
'url': 'https://www.buffalobills.com/video/buffalo-bills-military-recognition-week-14',
'only_matching': True,