[tiktok] ignore empty 'music' entries (#8571)
This commit is contained in:
@@ -70,8 +70,7 @@ class TiktokExtractor(Extractor):
|
|||||||
if self.audio and "music" in post:
|
if self.audio and "music" in post:
|
||||||
if self.audio == "ytdl":
|
if self.audio == "ytdl":
|
||||||
ytdl_media = "audio"
|
ytdl_media = "audio"
|
||||||
else:
|
elif url := self._extract_audio(post):
|
||||||
url = self._extract_audio(post)
|
|
||||||
yield Message.Url, url, post
|
yield Message.Url, url, post
|
||||||
|
|
||||||
elif self.video and "video" in post:
|
elif self.video and "video" in post:
|
||||||
|
|||||||
Reference in New Issue
Block a user