mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[weiqitv] Make codes shorter
This commit is contained in:
parent
bec30224ff
commit
65ced034b8
@ -37,13 +37,11 @@ def _real_extract(self, url):
|
||||
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',
|
||||
|
Loading…
Reference in New Issue
Block a user