[cnbc:video] Fix _VALID_URL (#17110)
authorSergey M․ <dstftw@gmail.com>
Mon, 29 Oct 2018 21:57:28 +0000 (04:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 29 Oct 2018 21:57:51 +0000 (04:57 +0700)
youtube_dl/extractor/cnbc.py

index 81b0c9fc417cb24aba0824ec2dce63eb1acefc7e..6889b0f401b13a04855b3afef1882aa1c0b7da3b 100644 (file)
@@ -38,7 +38,7 @@ class CNBCIE(InfoExtractor):
 
 
 class CNBCVideoIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www)?\.cnbc\.com/video/(?:[^/]+/)+(?P<id>[^./?#&]+)'
+    _VALID_URL = r'https?://(?:www\.)?cnbc\.com/video/(?:[^/]+/)+(?P<id>[^./?#&]+)'
     _TEST = {
         'url': 'https://www.cnbc.com/video/2018/07/19/trump-i-dont-necessarily-agree-with-raising-rates.html',
         'info_dict': {