[nfl] fix content id regex(fixes #7012)
authorremitamine <remitamine@gmail.com>
Wed, 30 Sep 2015 12:30:48 +0000 (13:30 +0100)
committerSergey M․ <dstftw@gmail.com>
Wed, 30 Sep 2015 14:03:10 +0000 (20:03 +0600)
youtube_dl/extractor/nfl.py

index 55dc6107d0fcc7c69af04dcf1e5fbb716f5d8115..4c35c561b7bf07b76d418971c4f482c555bad85f 100644 (file)
@@ -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(