From 1ed41d80c05ebc77a018ec1e93568a3984a310a7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 00:55:30 +0200 Subject: [PATCH] fix rdrama.org thumbnails --- files/classes/submission.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index 4da49ae2a..b15acd34a 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -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