[tiktok] fix "KeyError: 'author'" (#8189)

This commit is contained in:
Mike Fährmann
2025-09-10 09:14:55 +02:00
parent 8617c08c6c
commit eaf0591eea
2 changed files with 8 additions and 2 deletions

View File

@@ -181,6 +181,13 @@ __tests__ = (
"#class" : tiktok.TiktokPostExtractor,
},
{
"#url" : "https://www.tiktok.com/@veronicaperasso_1/video/7212008840433274118",
"#comment" : "no 'author' (#8189)",
"#class" : tiktok.TiktokPostExtractor,
"#results" : "ytdl:https://www.tiktok.com/@veronicaperasso_1/video/7212008840433274118",
},
{
"#url" : "https://vm.tiktok.com/ZGdh4WUhr/",
"#comment" : "vm.tiktok.com link: many photos",