diff --git a/for_lossless_music/__init__.py b/for_lossless_music/__init__.py index 5579597..73e2760 100644 --- a/for_lossless_music/__init__.py +++ b/for_lossless_music/__init__.py @@ -6,7 +6,7 @@ from .song import Song from .quality import * -__version__ = '0.1.2' +__version__ = '0.1.3' def search(keyword, source: Source, page=1, num=20): diff --git a/for_lossless_music/qqmusic.py b/for_lossless_music/qqmusic.py index 6964371..5513f2b 100644 --- a/for_lossless_music/qqmusic.py +++ b/for_lossless_music/qqmusic.py @@ -1,3 +1,4 @@ +import html import requests import urllib.parse from .song import Song @@ -59,9 +60,9 @@ def search(keyword, page=1, num=20): tags.append(size[k]) ### ret.append(Song(id=num*(page-1) + i+1, - name=e['songname'], - singers=[s['name'] for s in e['singer']], - album=e['albumname'], + name=html.unescape(e['songname']), + singers=[html.unescape(s['name']) for s in e['singer']], + album=html.unescape(e['albumname']), interval=sec2humantime(e['interval']), tags=tags, source=Source.QQ,