]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[cbsinteractive] Relax _VALID_URL (closes #13213)
authorSergey M․ <dstftw@gmail.com>
Sat, 27 May 2017 15:36:58 +0000 (22:36 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 27 May 2017 15:37:24 +0000 (22:37 +0700)
youtube_dl/extractor/cbsinteractive.py

index 86f7eee2053771b47c98a05c9fbc609121160fe3..681d63e29222715a0bb0d45462169edde0787330 100644 (file)
@@ -8,7 +8,7 @@ from ..utils import int_or_none
 
 
 class CBSInteractiveIE(CBSIE):
-    _VALID_URL = r'https?://(?:www\.)?(?P<site>cnet|zdnet)\.com/(?:videos|video/share)/(?P<id>[^/?]+)'
+    _VALID_URL = r'https?://(?:www\.)?(?P<site>cnet|zdnet)\.com/(?:videos|video(?:/share)?)/(?P<id>[^/?]+)'
     _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 = {