示例#1
0
文件: Net.py 项目: Taliens/kwplayer
 def _parse_lrc():
     url = ('http://newlyric.kuwo.cn/newlyric.lrc?' + 
             Utils.encode_lrc_url(rid))
     req_content = urlopen(url, use_cache=False, retries=8)
     if not req_content:
         return None
     try:
         lrc = Utils.decode_lrc_content(req_content)
         return lrc
     except Exception as e:
         return None
示例#2
0
 def _parse_lrc():
     url = ('http://newlyric.kuwo.cn/newlyric.lrc?' +
            Utils.encode_lrc_url(rid))
     req_content = urlopen(url, use_cache=False, retries=8)
     if not req_content:
         return None
     try:
         lrc = Utils.decode_lrc_content(req_content)
         return lrc
     except Exception as e:
         return None
示例#3
0
文件: Net.py 项目: weakish/kwplayer
 def _parse_lrc():
     url = ('http://newlyric.kuwo.cn/newlyric.lrc?' + 
             Utils.encode_lrc_url(rid))
     req_content = urlopen(url, use_cache=False)
     if req_content is None:
         return None
     try:
         lrc = Utils.decode_lrc_content(req_content)
     except Exception as e:
         print('Error: Net.get_lrc:', e, 'with url:', url)
         return None
     return lrc
示例#4
0
 def _parse_lrc():
     url = ('http://newlyric.kuwo.cn/newlyric.lrc?' +
            Utils.encode_lrc_url(rid))
     #print('Net._parse_lrc(), url:', url)
     req_content = urlopen(url, use_cache=False, retries=8)
     if not req_content:
         return None
     try:
         lrc = Utils.decode_lrc_content(req_content)
         return lrc
     except Exception as e:
         print('Error: Net.get_lrc:', e, 'with url:', url)
         return None