projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
51c7f40
)
[tva] Relax _VALID_URL (closes #23903)
author
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jan 2020 20:49:16 +0000
(
03:49
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jan 2020 20:49:16 +0000
(
03:49
+0700)
youtube_dl/extractor/tva.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tva.py
b/youtube_dl/extractor/tva.py
index 0b863df2ff4ad214162c6187ac7aaa65fe3fc6c9..443f46e8a3537165d620c2db8863634e9f922ab6 100644
(file)
--- a/
youtube_dl/extractor/tva.py
+++ b/
youtube_dl/extractor/tva.py
@@
-9,8
+9,8
@@
from ..utils import (
class TVAIE(InfoExtractor):
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+)'
+ _TEST
S = [
{
'url': 'https://videos.tva.ca/details/_5596811470001',
'info_dict': {
'id': '5596811470001',
'url': 'https://videos.tva.ca/details/_5596811470001',
'info_dict': {
'id': '5596811470001',
@@
-24,7
+24,10
@@
class TVAIE(InfoExtractor):
# m3u8 download
'skip_download': True,
}
# 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):
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5481942443001/default_default/index.html?videoId=%s'
def _real_extract(self, url):