mirror of
https://github.com/imgyh/tiktok.git
synced 2025-04-06 00:40:43 +08:00
fix(tiktok): 缩短文件名长度
This commit is contained in:
parent
47b7662a66
commit
01fbd743f8
@ -47,8 +47,8 @@ class Utils(object):
|
||||
result = re.findall(match, filenamestr)
|
||||
|
||||
result = "".join(result).strip()
|
||||
if len(result) > 80:
|
||||
result = result[:80]
|
||||
if len(result) > 20:
|
||||
result = result[:20]
|
||||
# 去除前后空格
|
||||
return result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user