mirror of
https://github.com/soimort/you-get.git
synced 2025-02-10 12:12:26 +03:00
fix replace ? to - in lyric file name
This commit is contained in:
parent
aa8b094108
commit
62a4f6cd4c
@ -42,7 +42,7 @@ def xiami_download_lyric(lrc_url, file_name, output_dir):
|
|||||||
break
|
break
|
||||||
|
|
||||||
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