projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e517527
)
[tvnet] Fix _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Mon, 11 Jun 2018 19:05:58 +0000
(
02:05
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 11 Jun 2018 19:05:58 +0000
(
02:05
+0700)
youtube_dl/extractor/tvnet.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tvnet.py
b/youtube_dl/extractor/tvnet.py
index 1083d2730a0141b03abd0e6113a157c25e7eaa19..2b2630b916dc94cea142986169cc615479d30d7e 100644
(file)
--- a/
youtube_dl/extractor/tvnet.py
+++ b/
youtube_dl/extractor/tvnet.py
@@
-12,7
+12,7
@@
from ..utils import (
class TVNetIE(InfoExtractor):
- _VALID_URL = r'https?://(?:[^/]+)\.tvnet\.gov\.vn/[^/]+/(?:\d+/)?(?P<id>
[0-9]+)/
'
+ _VALID_URL = r'https?://(?:[^/]+)\.tvnet\.gov\.vn/[^/]+/(?:\d+/)?(?P<id>
\d+)(?:/|$)
'
_TESTS = [{
# video
'url': 'http://de.tvnet.gov.vn/video/109788/vtv1---bac-tuyet-tai-lao-cai-va-ha-giang/tin-nong-24h',