Fix the problem that kuwomusic can't be download

Change the current kuwo url to a previous version.
(example: change"http://www.kuwo.cn/play_detail/7149583" to "http://www.kuwo.cn/yinyue/7149583")
This commit is contained in:
licabbage 2019-06-18 22:47:07 +08:00 committed by GitHub
parent fe7279ab47
commit c0c8d2d9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ def kuwo_playlist_download(url, output_dir = '.', merge = True, info_only = Fals
def kuwo_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
if "www.kuwo.cn/yinyue" in url:
url = re.sub("play_detail","yinyue",url)
rid=match1(url,'yinyue/(\d+)')
kuwo_download_by_rid(rid,output_dir, merge, info_only)
else: