mirror of
https://github.com/soimort/you-get.git
synced 2025-02-10 04:02:28 +03:00
xiami album 3332 UnicodeEncodeError
This commit is contained in:
parent
9c464cb75f
commit
30a22e457f
@ -30,7 +30,7 @@ def location_dec(str):
|
||||
def xiami_download_lyric(lrc_url, file_name, output_dir):
|
||||
lrc = get_html(lrc_url, faker = True)
|
||||
if len(lrc) > 0:
|
||||
with open(output_dir + "/" + file_name.replace('/', '-') + '.lrc', 'w') as x:
|
||||
with open(output_dir + "/" + file_name.replace('/', '-') + '.lrc', 'w', encoding='utf-8') as x:
|
||||
x.write(lrc)
|
||||
|
||||
def xiami_download_song(sid, output_dir = '.', merge = True, info_only = False):
|
||||
|
Loading…
Reference in New Issue
Block a user