diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-08-19 01:13:45 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-08-19 01:13:45 +0700 |
commit | 9e5751b9fe72f7425e4cb3f22a56b6a95b59e41d (patch) | |
tree | dde911a7f0261bd64a8d014d592dc85439488987 /youtube_dl | |
parent | bd1bcd3ea079889cfd7cd44c0ea750ac9d432e41 (diff) |
[globo:article] Relax _VALID_URL and video id regex (Closes #10379)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/globo.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/globo.py b/youtube_dl/extractor/globo.py index 3de8356f6..dbacbfc61 100644 --- a/youtube_dl/extractor/globo.py +++ b/youtube_dl/extractor/globo.py @@ -396,12 +396,12 @@ class GloboIE(InfoExtractor): class GloboArticleIE(InfoExtractor): - _VALID_URL = 'https?://.+?\.globo\.com/(?:[^/]+/)*(?P<id>[^/]+)\.html' + _VALID_URL = 'https?://.+?\.globo\.com/(?:[^/]+/)*(?P<id>[^/]+)(?:\.html)?' _VIDEOID_REGEXES = [ r'\bdata-video-id=["\'](\d{7,})', r'\bdata-player-videosids=["\'](\d{7,})', - r'\bvideosIDs\s*:\s*["\'](\d{7,})', + r'\bvideosIDs\s*:\s*["\']?(\d{7,})', r'\bdata-id=["\'](\d{7,})', r'<div[^>]+\bid=["\'](\d{7,})', ] @@ -423,6 +423,9 @@ class GloboArticleIE(InfoExtractor): }, { 'url': 'http://gshow.globo.com/programas/tv-xuxa/O-Programa/noticia/2014/01/xuxa-e-junno-namoram-muuuito-em-luau-de-zeze-di-camargo-e-luciano.html', 'only_matching': True, + }, { + 'url': 'http://oglobo.globo.com/rio/a-amizade-entre-um-entregador-de-farmacia-um-piano-19946271', + 'only_matching': True, }] @classmethod |