mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[weiqitv] Make codes shorter
This commit is contained in:
parent
bec30224ff
commit
65ced034b8
1 changed files with 2 additions and 4 deletions
|
@ -37,13 +37,11 @@ class WeiqitvIE(InfoExtractor):
|
||||||
page = self._download_webpage(url, media_id)
|
page = self._download_webpage(url, media_id)
|
||||||
|
|
||||||
info_json_str = self._search_regex(
|
info_json_str = self._search_regex(
|
||||||
'var\s+video\s*=\s*(.+});',
|
'var\s+video\s*=\s*(.+});', page, 'info json str')
|
||||||
page, 'info_json_str')
|
|
||||||
info_json = self._parse_json(info_json_str, media_id)
|
info_json = self._parse_json(info_json_str, media_id)
|
||||||
|
|
||||||
letvcloud_url = self._search_regex(
|
letvcloud_url = self._search_regex(
|
||||||
'var\s+letvurl\s*=\s*"([^"]+)',
|
'var\s+letvurl\s*=\s*"([^"]+)', page, 'letvcloud url')
|
||||||
page, 'letvcloud_url')
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
|
|
Loading…
Reference in a new issue