[tvnet] Fix _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Mon, 11 Jun 2018 19:05:58 +0000 (02:05 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 11 Jun 2018 19:05:58 +0000 (02:05 +0700)
youtube_dl/extractor/tvnet.py

index 1083d2730a0141b03abd0e6113a157c25e7eaa19..2b2630b916dc94cea142986169cc615479d30d7e 100644 (file)
@@ -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',