detect invalid url messages instagram bot

This commit is contained in:
msramalho
2023-02-20 12:22:52 +00:00
parent f95293b84b
commit 876988b587
2 changed files with 7 additions and 3 deletions

View File

@@ -67,6 +67,10 @@ class InstagramTbotArchiver(Archiver):
seen_media.append(post.id)
if post.message: message += post.message
if "You must enter a URL to a post" in message:
logger.debug(f"invalid link {url=} for {self.name}: {message}")
return False
if message:
result.set_content(message).set_title(message[:128])