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