mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 12:42:29 +03:00
the directory name is end by space character
This commit is contained in:
parent
9f09996f6c
commit
b1b4bbf7ca
@ -46,6 +46,7 @@ def xiami_download_lyric(lrc_url, file_name, output_dir):
|
|||||||
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):
|
||||||
|
output_dir = output_dir.strip(' ')
|
||||||
pic_url = pic_url.replace('_1', '')
|
pic_url = pic_url.replace('_1', '')
|
||||||
pos = pic_url.rfind('.')
|
pos = pic_url.rfind('.')
|
||||||
ext = pic_url[pos:]
|
ext = pic_url[pos:]
|
||||||
@ -129,6 +130,7 @@ def xiami_download_album(aid, output_dir = '.', merge = True, info_only = False)
|
|||||||
print_info(site_info, song_title, type, size)
|
print_info(site_info, song_title, type, size)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
file_name = "%02d.%s" % (track_nr, song_title.replace(':', '-'))
|
file_name = "%02d.%s" % (track_nr, song_title.replace(':', '-'))
|
||||||
|
output_dir = output_dir.strip(' ')
|
||||||
download_urls([url], file_name, ext, size, output_dir, merge = merge, faker = True)
|
download_urls([url], file_name, ext, size, output_dir, merge = merge, faker = True)
|
||||||
try:
|
try:
|
||||||
xiami_download_lyric(lrc_url, file_name, output_dir)
|
xiami_download_lyric(lrc_url, file_name, output_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user