fix rdrama.org thumbnails

master
Aevann1 2022-08-26 00:55:30 +02:00
parent b191f426d0
commit 1ed41d80c0
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ class Submission(Base):
return self.thumburl
elif self.is_youtube or self.is_video: return f"{SITE_FULL}/assets/images/default_thumb_video.webp?v=1"
elif self.is_audio: return f"{SITE_FULL}/assets/images/default_thumb_audio.webp?v=1"
elif self.domain == SITE: return f"{SITE_FULL}/assets/images/{SITE_NAME}/site_preview.webp?v=3009"
elif self.domain.split('.')[0] == SITE.split('.')[0]:
return f"{SITE_FULL}/assets/images/{SITE_NAME}/site_preview.webp?v=3009"
else: return f"{SITE_FULL}/assets/images/default_thumb_link.webp?v=1"
@property