mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
Acfun & Bilibili: fix #148
This commit is contained in:
parent
92490d35ee
commit
3a3dd740f5
@ -33,7 +33,7 @@ def acfun_download_by_id(id, title = None, output_dir = '.', merge = True, info_
|
||||
if not info_only:
|
||||
print('Downloading %s ...' % (title + '.cmt.json'))
|
||||
cmt = get_srt_json(vid)
|
||||
with open(title + '.cmt.json', 'w') as x:
|
||||
with open(os.path.join(output_dir, title + '.cmt.json'), 'w') as x:
|
||||
x.write(cmt)
|
||||
|
||||
def acfun_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
|
@ -101,7 +101,7 @@ def bilibili_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
if not info_only:
|
||||
print('Downloading %s ...' % (title + '.cmt.xml'))
|
||||
xml = get_srt_xml(id)
|
||||
with open(title + '.cmt.xml', 'w') as x:
|
||||
with open(os.path.join(output_dir, title + '.cmt.xml'), 'w') as x:
|
||||
x.write(xml)
|
||||
|
||||
site_info = "bilibili.tv"
|
||||
|
Loading…
Reference in New Issue
Block a user