commit aedb930cfcd068600d3b5b0b3aef32df1a28f0c0
parent c596ce91cd22914e031b9ac94ec38d1137e50d60
Author: remitamine <remitamine@gmail.com>
Date: Wed, 30 Sep 2015 13:30:48 +0100
[nfl] fix content id regex(fixes #7012)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/nfl.py b/youtube_dl/extractor/nfl.py
@@ -151,7 +151,7 @@ class NFLIE(InfoExtractor):
group='config'))
# For articles, the id in the url is not the video id
video_id = self._search_regex(
- r'(?:<nflcs:avplayer[^>]+data-contentId\s*=\s*|contentId\s*:\s*)(["\'])(?P<id>.+?)\1',
+ r'(?:<nflcs:avplayer[^>]+data-content[Ii]d\s*=\s*|content[Ii]d\s*:\s*)(["\'])(?P<id>.+?)\1',
webpage, 'video id', default=video_id, group='id')
config = self._download_json(config_url, video_id, 'Downloading player config')
url_template = NFLIE.prepend_host(