Skip to content

Commit

Permalink
[azubu] Add support for azubu.uol.com.br (closes #11305)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Nov 27, 2016
1 parent 560c8c6 commit 6901673
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions youtube_dl/extractor/azubu.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class AzubuIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?azubu\.tv/[^/]+#!/play/(?P<id>\d+)'
_VALID_URL = r'https?://(?:www\.)?azubu\.(?:tv|uol.com.br)/[^/]+#!/play/(?P<id>\d+)'
_TESTS = [
{
'url': 'http://www.azubu.tv/GSL#!/play/15575/2014-hot6-cup-last-big-match-ro8-day-1',
Expand Down Expand Up @@ -103,12 +103,15 @@ def _real_extract(self, url):


class AzubuLiveIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?azubu\.tv/(?P<id>[^/]+)$'
_VALID_URL = r'https?://(?:www\.)?azubu\.(?:tv|uol.com.br)/(?P<id>[^/]+)$'

_TEST = {
_TESTS = [{
'url': 'http://www.azubu.tv/MarsTVMDLen',
'only_matching': True,
}
}, {
'url': 'http://azubu.uol.com.br/adolfz',
'only_matching': True,
}]

def _real_extract(self, url):
user = self._match_id(url)
Expand Down

0 comments on commit 6901673

Please sign in to comment.