Browse Source

[nfl] fix content id regex(fixes #7012)

totalwebcasting
remitamine 9 years ago
committed by Sergey M․
parent
commit
aedb930cfc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/nfl.py

+ 1
- 1
youtube_dl/extractor/nfl.py View File

@ -151,7 +151,7 @@ class NFLIE(InfoExtractor):
group='config')) group='config'))
# For articles, the id in the url is not the video id # For articles, the id in the url is not the video id
video_id = self._search_regex( 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') webpage, 'video id', default=video_id, group='id')
config = self._download_json(config_url, video_id, 'Downloading player config') config = self._download_json(config_url, video_id, 'Downloading player config')
url_template = NFLIE.prepend_host( url_template = NFLIE.prepend_host(


Loading…
Cancel
Save