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,