From fb250da6310e7e30dc527b8180c1af817959aa7f Mon Sep 17 00:00:00 2001 From: Qiufeng Date: Fri, 21 Aug 2026 16:00:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=96=E9=9F=B3/TikTok=20=E6=9C=AA?= =?UTF-8?q?=E5=A1=AB=E6=A0=87=E7=AD=BE=E6=97=B6=20self.tags=3DNone=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=20len()=20=E5=B4=A9=E6=BA=83=EF=BC=8C?= =?UTF-8?q?=E5=85=9C=E5=BA=95=E4=B8=BA=20[]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uploader/douyin_uploader/main.py | 2 +- uploader/tk_uploader/main.py | 2 +- uploader/tk_uploader/main_chrome.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uploader/douyin_uploader/main.py b/uploader/douyin_uploader/main.py index e3f3fd4..e37e7f3 100644 --- a/uploader/douyin_uploader/main.py +++ b/uploader/douyin_uploader/main.py @@ -653,7 +653,7 @@ class DouYinVideo(DouYinBaseUploader): ) self.title = title self.file_path = file_path - self.tags = tags + self.tags = tags or [] self.thumbnail_landscape_path = thumbnail_landscape_path self.thumbnail_portrait_path = thumbnail_portrait_path self.productLink = productLink diff --git a/uploader/tk_uploader/main.py b/uploader/tk_uploader/main.py index 861be23..b123111 100644 --- a/uploader/tk_uploader/main.py +++ b/uploader/tk_uploader/main.py @@ -73,7 +73,7 @@ class TiktokVideo(object): def __init__(self, title, file_path, tags, publish_date, account_file): self.title = title self.file_path = file_path - self.tags = tags + self.tags = tags or [] self.publish_date = publish_date self.account_file = account_file self.headless = LOCAL_CHROME_HEADLESS diff --git a/uploader/tk_uploader/main_chrome.py b/uploader/tk_uploader/main_chrome.py index 29a94fc..fd5c836 100644 --- a/uploader/tk_uploader/main_chrome.py +++ b/uploader/tk_uploader/main_chrome.py @@ -75,7 +75,7 @@ class TiktokVideo(object): def __init__(self, title, file_path, tags, publish_date, account_file, thumbnail_path=None): self.title = title self.file_path = file_path - self.tags = tags + self.tags = tags or [] self.publish_date = publish_date self.thumbnail_path = thumbnail_path self.account_file = account_file