Browse Source
[cbsinteractive] Fix extraction for cnet.com
master
Yen Chi Hsuan
8 years ago
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30
2 changed files with
2 additions and
1 deletions
-
ChangeLog
-
youtube_dl/extractor/cbsinteractive.py
|
|
@ -1,6 +1,7 @@ |
|
|
|
version <unreleased> |
|
|
|
|
|
|
|
Extractors |
|
|
|
* [cbsinteractive] Fix extraction for cnet.com |
|
|
|
* [parliamentliveuk] Lower case URLs are now recognized (#10912) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -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] |
|
|
|