aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/weiqitv.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-01-20 04:02:30 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-01-20 04:02:30 +0800
commit65ced034b851f890f894ce79d8069de852208dfc (patch)
treede04adb8be6779f73dea193f2832cb74c1a0cf0a /youtube_dl/extractor/weiqitv.py
parentbec30224ff86d11c3f61808dbe683f97940ba23e (diff)
[weiqitv] Make codes shorter
Diffstat (limited to 'youtube_dl/extractor/weiqitv.py')
-rw-r--r--youtube_dl/extractor/weiqitv.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/weiqitv.py b/youtube_dl/extractor/weiqitv.py
index da3b3d145..b72df1e8d 100644
--- a/youtube_dl/extractor/weiqitv.py
+++ b/youtube_dl/extractor/weiqitv.py
@@ -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',