From: Sergey M․ Date: Mon, 11 Jun 2018 19:05:58 +0000 (+0700) Subject: [tvnet] Fix _VALID_URL X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=7dc9c60b4b848f4b1d38b2995c7d421c89be93c0;p=youtube-dl [tvnet] Fix _VALID_URL --- diff --git a/youtube_dl/extractor/tvnet.py b/youtube_dl/extractor/tvnet.py index 1083d2730..2b2630b91 100644 --- 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[0-9]+)/' + _VALID_URL = r'https?://(?:[^/]+)\.tvnet\.gov\.vn/[^/]+/(?:\d+/)?(?P\d+)(?:/|$)' _TESTS = [{ # video 'url': 'http://de.tvnet.gov.vn/video/109788/vtv1---bac-tuyet-tai-lao-cai-va-ha-giang/tin-nong-24h',