mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +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
|
||||
|
||||
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)
|
||||
|
||||
def xiami_download_pic(pic_url, file_name, output_dir):
|
||||
|
Loading…
Reference in New Issue
Block a user