Skip to content

Commit

Permalink
make you-get's mgtv be fast
Browse files Browse the repository at this point in the history
Signed-off-by: wwqgtxx <[email protected]>
  • Loading branch information
wwqgtxx committed Jun 16, 2016
1 parent 508433d commit 7604a14
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion wwqLyParse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
version = {
'port_version' : "0.5.0",
'type' : 'parse',
'version' : '0.2.4',
'version' : '0.2.5',
'uuid' : '{C35B9DFC-559F-49E2-B80B-79B66EC77471}',
'filter' : [],
'name' : 'WWQ猎影解析插件',
Expand Down
9 changes: 7 additions & 2 deletions wwqLyParse/parsers/yougetparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,13 @@ def _make_label(self,stream):
_format = stream['_format']
_id = stream['_id']
quality = stream['video_profile']
l = ('_').join([str(_id), _format, quality, self.byte2size(stream['size'], False)])
size = self.byte2size(stream['size'], True)
try:
size_str = self.byte2size(stream['size'], False)
size = self.byte2size(stream['size'], True)
except:
size_str = "0"
size = 0
l = ('_').join([str(_id), _format, quality, size_str])
ext = stream['container']
return l, size, ext

Expand Down
4 changes: 2 additions & 2 deletions wwqLyParse/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main():
#debug(Parse('http://v.qq.com/tv/'))
#debug(Parse('http://www.pptv.com/'))
#debug(Parse('http://yyfm.xyz/video/album/1300046802.html'))
debug(Parse('http://www.iqiyi.com/playlist392712002.html',"collection"))
#debug(Parse('http://www.iqiyi.com/playlist392712002.html',"collection"))
#debug(Parse('http://list.iqiyi.com/www/2/----------------iqiyi--.html'))
#debug(Parse('http://www.iqiyi.com/a_19rrhb8fjp.html',"list"))
#debug(Parse('http://www.iqiyi.com/v_19rrl8pmn8.html#vfrm=2-3-0-1'))
Expand All @@ -144,7 +144,7 @@ def main():
#debug(Parse('http://v.pptv.com/show/NWR29Yzj2hh7ibWE.html?rcc_src=S1'))
#debug(Parse('http://www.bilibili.com/video/av2557971/')) #don't support
#debug(Parse('http://v.baidu.com/link?url=dm_10tBNoD-LLAMb79CB_p0kxozuoJcW0SiN3eycdo6CdO3GZgQm26uOzZh9fqcNSWZmz9aU9YYCCfT0NmZoGfEMoznyHhz3st-QvlOeyArYdIbhzBbdIrmntA4h1HsSampAs4Z3c17r_exztVgUuHZqChPeZZQ4tlmM5&page=tvplaydetail&vfm=bdvtx&frp=v.baidu.com%2Ftv_intro%2F&bl=jp_video',"formats"))
#debug(Parse('http://www.hunantv.com/v/1/291976/c/3137384.html'))
debug(Parse('http://www.hunantv.com/v/1/291976/c/3137384.html'))
#debug(ParseURL('http://www.mgtv.com/v/1/291976/c/3137384.html',"1"))


Expand Down
2 changes: 1 addition & 1 deletion wwqLyParse/you-get

0 comments on commit 7604a14

Please sign in to comment.