projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec3022
)
[weiqitv] Make codes shorter
author
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 19 Jan 2016 20:02:30 +0000
(
04:02
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 19 Jan 2016 20:02:30 +0000
(
04:02
+0800)
youtube_dl/extractor/weiqitv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/weiqitv.py
b/youtube_dl/extractor/weiqitv.py
index da3b3d145aa421f1b7be2bb48a44a8625f7120b7..b72df1e8dbc98c72f477429ebc547ef6c784149c 100644
(file)
--- 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',