output_filename的最大长度不够长。

面对一些title超长的视频时,会导致分P的文件名无法输出,最终--playlist下载多个分P时提示文件重复。

OS:windows server 2019
python:3.8.1 x64

you-get https://www.bilibili.com/video/av35035828
This commit is contained in:
fch1993 2020-01-26 21:08:55 +08:00
parent 5a008ad878
commit 3336c37dd7

View File

@ -892,7 +892,7 @@ class DummyProgressBar:
def done(self): def done(self):
pass pass
//获取时疑似最大长度不够
def get_output_filename(urls, title, ext, output_dir, merge, **kwargs): def get_output_filename(urls, title, ext, output_dir, merge, **kwargs):
# lame hack for the --output-filename option # lame hack for the --output-filename option
global output_filename global output_filename