fix: 抖音/TikTok 未填标签时 self.tags=None 导致 len() 崩溃,兜底为 []

This commit is contained in:
Qiufeng
2026-08-21 16:00:39 +08:00
parent 78bef8e2e1
commit fb250da631
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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