diff options
| author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-09-08 18:31:09 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-08 18:31:09 +0800 | 
| commit | 02e552886f99a0894fa3265531f6853a19323970 (patch) | |
| tree | e2a96f09347cf1fdc5fae6452aa111c54d603cbd /youtube_dl/extractor/globo.py | |
| parent | 3f612f076708973fce52d6b6053b24e2234a9c26 (diff) | |
| parent | 25042f73722c37e4ec88030cf69e23ae76c4359b (diff) | |
Merge pull request #10596 from stepshal/r_prefix
Add missing r prefix for _VALID_URLs
Diffstat (limited to 'youtube_dl/extractor/globo.py')
| -rw-r--r-- | youtube_dl/extractor/globo.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/globo.py b/youtube_dl/extractor/globo.py index dbacbfc61..5638be48f 100644 --- a/youtube_dl/extractor/globo.py +++ b/youtube_dl/extractor/globo.py @@ -19,7 +19,7 @@ from ..utils import (  class GloboIE(InfoExtractor): -    _VALID_URL = '(?:globo:|https?://.+?\.globo\.com/(?:[^/]+/)*(?:v/(?:[^/]+/)?|videos/))(?P<id>\d{7,})' +    _VALID_URL = r'(?:globo:|https?://.+?\.globo\.com/(?:[^/]+/)*(?:v/(?:[^/]+/)?|videos/))(?P<id>\d{7,})'      _API_URL_TEMPLATE = 'http://api.globovideos.com/videos/%s/playlist'      _SECURITY_URL_TEMPLATE = 'http://security.video.globo.com/videos/%s/hash?player=flash&version=17.0.0.132&resource_id=%s' @@ -396,7 +396,7 @@ class GloboIE(InfoExtractor):  class GloboArticleIE(InfoExtractor): -    _VALID_URL = 'https?://.+?\.globo\.com/(?:[^/]+/)*(?P<id>[^/]+)(?:\.html)?' +    _VALID_URL = r'https?://.+?\.globo\.com/(?:[^/]+/)*(?P<id>[^/]+)(?:\.html)?'      _VIDEOID_REGEXES = [          r'\bdata-video-id=["\'](\d{7,})', | 
