]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[cbsinteractive] Fix extraction for cnet.com
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 14 Oct 2016 10:20:01 +0000 (18:20 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 14 Oct 2016 10:20:01 +0000 (18:20 +0800)
ChangeLog
youtube_dl/extractor/cbsinteractive.py

index d2b78a4891f849c44ca029662d88345fa6f28114..edd5478113aa2760daa28d1bc2966e77a2cc559e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 version <unreleased>
 
 Extractors
+* [cbsinteractive] Fix extraction for cnet.com
 * [parliamentliveuk] Lower case URLs are now recognized (#10912)
 
 
index 821db20b23052ca71d594c6c05ad705a400129a3..57b18e81d412b20162f60e8d8e44699b76f2e3af 100644 (file)
@@ -63,7 +63,7 @@ class CBSInteractiveIE(ThePlatformIE):
         webpage = self._download_webpage(url, display_id)
 
         data_json = self._html_search_regex(
-            r"data-(?:cnet|zdnet)-video(?:-uvp)?-options='([^']+)'",
+            r"data-(?:cnet|zdnet)-video(?:-uvp(?:js)?)?-options='([^']+)'",
             webpage, 'data json')
         data = self._parse_json(data_json, display_id)
         vdata = data.get('video') or data['videos'][0]