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
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
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