Browse Source

[cnbc:video] Fix _VALID_URL (#17110)

Sergey M․ 6 years ago
parent
commit
f16679e843
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/cnbc.py

+ 1 - 1
youtube_dl/extractor/cnbc.py

@@ -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': {