mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
Xiami: fix replace ? to - in lyric file name
This commit is contained in:
parent
94daacc0b2
commit
0e17ee6faf
@ -30,7 +30,7 @@ def location_dec(str):
|
|||||||
def xiami_download_lyric(lrc_url, file_name, output_dir):
|
def xiami_download_lyric(lrc_url, file_name, output_dir):
|
||||||
lrc = get_html(lrc_url, faker = True)
|
lrc = get_html(lrc_url, faker = True)
|
||||||
if len(lrc) > 0:
|
if len(lrc) > 0:
|
||||||
with open(output_dir + "/" + file_name.replace('/', '-') + '.lrc', 'w', encoding='utf-8') as x:
|
with open(output_dir + "/" + file_name.replace('/', '-').replace('?', '-') + '.lrc', 'w', encoding='utf-8') as x:
|
||||||
x.write(lrc)
|
x.write(lrc)
|
||||||
|
|
||||||
def xiami_download_pic(pic_url, file_name, output_dir):
|
def xiami_download_pic(pic_url, file_name, output_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user