From a25e36a4677df0839c8390e4a5d390aab45e1d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20St=C3=A4hli?= Date: Fri, 8 Dec 2023 16:43:36 +0100 Subject: [PATCH] vimeo poster --- djangocms_baseplugins/video/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/djangocms_baseplugins/video/models.py b/djangocms_baseplugins/video/models.py index 0e54302..c22d257 100644 --- a/djangocms_baseplugins/video/models.py +++ b/djangocms_baseplugins/video/models.py @@ -132,11 +132,12 @@ def video_preview_image(self): # return 'https://i.ytimg.com/vi/%s/0.jpg' % yt_id # return 'https://img.youtube.com/vi/%s/maxresdefault.jpg' % yt_id return 'https://img.youtube.com/vi/%s/0.jpg' % id - if self.video_type == 'youtube': + if self.video_type == 'vimeo': id = self.video_id return 'https://vumbnail.com/%s.jpg' % id return '' + class VideoBase(VideoModelMixin, AbstractBasePlugin): video_url = models.URLField( null=True,