Acfun: legitimize title

This commit is contained in:
Mort Yao 2014-05-18 00:28:57 +02:00
parent 86ab2d9a8c
commit bcf5c06893

View File

@ -36,6 +36,7 @@ def acfun_download_by_vid(vid, title=None, output_dir='.', merge=True, info_only
raise NotImplementedError(t) raise NotImplementedError(t)
if not info_only: if not info_only:
title = legitimize(title)
try: try:
print('Downloading %s ...' % (title + '.cmt.json')) print('Downloading %s ...' % (title + '.cmt.json'))
cmt = get_srt_json(danmakuId) cmt = get_srt_json(danmakuId)