summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/tiktok.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-09-16 02:12:49 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-09-16 02:12:49 -0400
commit3b7f8716690b7aa1994a9cb387bbc7215e01a4ed (patch)
tree1009e66478f4f0a64324acd92e0cc8709eb5f90f /gallery_dl/extractor/tiktok.py
parent243b2597edb922fe7e0b0d887e80bb7ebbe72ab7 (diff)
New upstream version 1.30.7.upstream/1.30.7
Diffstat (limited to 'gallery_dl/extractor/tiktok.py')
-rw-r--r--gallery_dl/extractor/tiktok.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gallery_dl/extractor/tiktok.py b/gallery_dl/extractor/tiktok.py
index 973bd22..f450806 100644
--- a/gallery_dl/extractor/tiktok.py
+++ b/gallery_dl/extractor/tiktok.py
@@ -42,8 +42,7 @@ class TiktokExtractor(Extractor):
continue
post = video_detail["itemInfo"]["itemStruct"]
- author = post["author"]
- post["user"] = author["uniqueId"]
+ post["user"] = (a := post.get("author")) and a["uniqueId"] or ""
post["date"] = text.parse_timestamp(post["createTime"])
original_title = title = post["desc"]