0
0
Fork 0

[weiqitv] Make codes shorter

main
Yen Chi Hsuan 2016-01-20 04:02:30 +08:00
parent bec30224ff
commit 65ced034b8
1 changed files with 2 additions and 4 deletions

View File

@ -37,13 +37,11 @@ class WeiqitvIE(InfoExtractor):
page = self._download_webpage(url, media_id)
info_json_str = self._search_regex(
'var\s+video\s*=\s*(.+});',
page, 'info_json_str')
'var\s+video\s*=\s*(.+});', page, 'info json str')
info_json = self._parse_json(info_json_str, media_id)
letvcloud_url = self._search_regex(
'var\s+letvurl\s*=\s*"([^"]+)',
page, 'letvcloud_url')
'var\s+letvurl\s*=\s*"([^"]+)', page, 'letvcloud url')
return {
'_type': 'url_transparent',