From 03327bc9a62bba1e6181e22e0ada82fb2f087fb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sat, 27 May 2017 22:36:58 +0700 Subject: [PATCH] [cbsinteractive] Relax _VALID_URL (closes #13213) --- youtube_dl/extractor/cbsinteractive.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cbsinteractive.py b/youtube_dl/extractor/cbsinteractive.py index 86f7eee20..681d63e29 100644 --- a/youtube_dl/extractor/cbsinteractive.py +++ b/youtube_dl/extractor/cbsinteractive.py @@ -8,7 +8,7 @@ from ..utils import int_or_none class CBSInteractiveIE(CBSIE): - _VALID_URL = r'https?://(?:www\.)?(?Pcnet|zdnet)\.com/(?:videos|video/share)/(?P[^/?]+)' + _VALID_URL = r'https?://(?:www\.)?(?Pcnet|zdnet)\.com/(?:videos|video(?:/share)?)/(?P[^/?]+)' _TESTS = [{ 'url': 'http://www.cnet.com/videos/hands-on-with-microsofts-windows-8-1-update/', 'info_dict': { @@ -60,6 +60,9 @@ class CBSInteractiveIE(CBSIE): # m3u8 download 'skip_download': True, }, + }, { + 'url': 'http://www.zdnet.com/video/huawei-matebook-x-video/', + 'only_matching': True, }] MPX_ACCOUNTS = { -- 2.22.2