Skip to content

Commit

Permalink
[tva] Relax _VALID_URL (closes #23903)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jan 30, 2020
1 parent 51c7f40 commit 4935749
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions youtube_dl/extractor/tva.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@


class TVAIE(InfoExtractor):
_VALID_URL = r'https?://videos\.tva\.ca/details/_(?P<id>\d+)'
_TEST = {
_VALID_URL = r'https?://videos?\.tva\.ca/details/_(?P<id>\d+)'
_TESTS = [{
'url': 'https://videos.tva.ca/details/_5596811470001',
'info_dict': {
'id': '5596811470001',
Expand All @@ -24,7 +24,10 @@ class TVAIE(InfoExtractor):
# m3u8 download
'skip_download': True,
}
}
}, {
'url': 'https://video.tva.ca/details/_5596811470001',
'only_matching': True,
}]
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5481942443001/default_default/index.html?videoId=%s'

def _real_extract(self, url):
Expand Down

0 comments on commit 4935749

Please sign in to comment.