aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/nfl.py
diff options
context:
space:
mode:
authorRogério Brito <rbrito@ime.usp.br>2016-11-30 17:22:52 -0200
committerRogério Brito <rbrito@ime.usp.br>2016-11-30 17:22:52 -0200
commit87a0165ca7e39af4dacb7ec637063b2cd35ae40b (patch)
treeef753773addf91c27e791587361fc4512ec281cf /youtube_dl/extractor/nfl.py
parentced7488f6d3a519b2c1b1cbd31048743fb8285bd (diff)
downloadyoutube-dl-87a0165ca7e39af4dacb7ec637063b2cd35ae40b.zip
youtube-dl-87a0165ca7e39af4dacb7ec637063b2cd35ae40b.tar.gz
youtube-dl-87a0165ca7e39af4dacb7ec637063b2cd35ae40b.tar.bz2
New upstream version 2016.12.01
Diffstat (limited to 'youtube_dl/extractor/nfl.py')
-rw-r--r--youtube_dl/extractor/nfl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nfl.py b/youtube_dl/extractor/nfl.py
index 200874d..3930d16 100644
--- a/youtube_dl/extractor/nfl.py
+++ b/youtube_dl/extractor/nfl.py
@@ -165,7 +165,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-content[Ii]d\s*=\s*|content[Ii]d\s*:\s*)(["\'])(?P<id>.+?)\1',
+ r'(?:<nflcs:avplayer[^>]+data-content[Ii]d\s*=\s*|content[Ii]d\s*:\s*)(["\'])(?P<id>(?:(?!\1).)+)\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(