From 3336c37dd727efa65cdb4980bf14b2fda79a2276 Mon Sep 17 00:00:00 2001 From: fch1993 Date: Sun, 26 Jan 2020 21:08:55 +0800 Subject: [PATCH] =?UTF-8?q?output=5Ffilename=E7=9A=84=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E4=B8=8D=E5=A4=9F=E9=95=BF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 面对一些title超长的视频时,会导致分P的文件名无法输出,最终--playlist下载多个分P时提示文件重复。 OS:windows server 2019 python:3.8.1 x64 you-get https://www.bilibili.com/video/av35035828 --- src/you_get/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/common.py b/src/you_get/common.py index 70602c89..53d11e20 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -892,7 +892,7 @@ class DummyProgressBar: def done(self): pass - +//获取时疑似最大长度不够。 def get_output_filename(urls, title, ext, output_dir, merge, **kwargs): # lame hack for the --output-filename option global output_filename