1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-26 00:07:55 +01:00

[cbs.com:playlist] remove js_to_json comment

This commit is contained in:
John Hawkinson 2017-03-25 12:14:33 -04:00
parent 8660a6b1b1
commit 91654b0437

View File

@ -56,11 +56,10 @@ class CBSShowIE(InfoExtractor):
show_name = self._match_id(url) show_name = self._match_id(url)
webpage = self._download_webpage(url, show_name) webpage = self._download_webpage(url, show_name)
# not-quite JSON, no double-quotes: show_id_js = self._search_regex(r'new CBS\.Show\(([^)]*)\);', webpage,
# var show = new CBS.Show({id:61456254}); 'show_id')
show_id_json = self._search_regex(r'new CBS\.Show\(([^)]*)\);', webpage, 'show_id') show = self._parse_json(show_id_js, show_name,
transform_source=js_to_json)
show = self._parse_json(show_id_json, show_name, transform_source=js_to_json)
# Found in http://www.cbs.com/assets/min/js/min/com.cbs.min.js?20170303-224247 # Found in http://www.cbs.com/assets/min/js/min/com.cbs.min.js?20170303-224247
# unminified at http://www.cbs.com/assets/js/min/com.cbs.js # unminified at http://www.cbs.com/assets/js/min/com.cbs.js