mirror of
https://github.com/soimort/you-get.git
synced 2025-02-10 12:12:26 +03:00
fix download from xiami lrc error
This commit is contained in:
parent
7d29a49257
commit
eec964605e
@ -34,7 +34,7 @@ def xiami_download_lyric(lrc_url, file_name, output_dir):
|
|||||||
try:
|
try:
|
||||||
lrc = get_html(lrc_url, faker = True)
|
lrc = get_html(lrc_url, faker = True)
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
if e.code == 404 or e.code == 416:
|
if e.code == 404 or e.code == 416 or e.code == 504:
|
||||||
print(e.msg)
|
print(e.msg)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user