minor change to silence warnings

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-09-23 14:01:42 +02:00
parent af2235dc8e
commit 08e4d04c92
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ def execute_snappy(post, v):
body += "\n\n"
if post.url and not post.url.startswith(SITE_FULL) and not post.url.startswith('/') and not post.url.startswith('https://rdrama.org'):
if post.url and not post.url.startswith(SITE_FULL) and not post.url.startswith('/') and not post.url.startswith('https://rdrama.org/'):
if post.url.startswith('https://old.reddit.com/r/'):
rev = post.url.replace('https://old.reddit.com/', '')
rev = f"* [unddit.com](https://unddit.com/{rev})\n"
@ -121,7 +121,7 @@ def execute_snappy(post, v):
for href, title in captured:
if href.startswith(SITE_FULL) or href.startswith('https://rdrama.org'): continue
if href.startswith(SITE_FULL) or href.startswith('https://rdrama.org/'): continue
if "Snapshots:\n\n" not in body: body += "Snapshots:\n\n"