diff options
author | stepshal <nessento@openmailbox.org> | 2016-09-14 23:03:26 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-09-15 23:12:58 +0700 |
commit | 490b755769a364ca0624390453e36321d5182d3e (patch) | |
tree | df3d59bf42143069fcee3e3d955cd324d5d9d1f6 /youtube_dl/extractor/nfl.py | |
parent | 1dec2c8a0e00e8ed53ddd030347ce9225df9964e (diff) |
Improve some id regexes
Diffstat (limited to 'youtube_dl/extractor/nfl.py')
-rw-r--r-- | youtube_dl/extractor/nfl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nfl.py b/youtube_dl/extractor/nfl.py index 200874d68..3930d16f1 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( |