aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tva.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-01-31 03:49:16 +0700
committerSergey M․ <dstftw@gmail.com>2020-01-31 03:49:16 +0700
commit493574973051601606c562c46331806831819ce4 (patch)
tree932a4e52d70a6a910b996daeaa7757259a8349b8 /youtube_dl/extractor/tva.py
parent51c7f40c83a12f9dc0fce0b9e5102a0c13467b6a (diff)
[tva] Relax _VALID_URL (closes #23903)
Diffstat (limited to 'youtube_dl/extractor/tva.py')
-rw-r--r--youtube_dl/extractor/tva.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/tva.py b/youtube_dl/extractor/tva.py
index 0b863df2f..443f46e8a 100644
--- a/youtube_dl/extractor/tva.py
+++ b/youtube_dl/extractor/tva.py
@@ -9,8 +9,8 @@ from ..utils import (
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',
@@ -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):