diff --git a/pod/video/models.py b/pod/video/models.py index 7dd4f3fcab..e7164ed774 100644 --- a/pod/video/models.py +++ b/pod/video/models.py @@ -1001,12 +1001,12 @@ def get_player_height(self) -> int: """ return 360 if self.is_video else 244 - def get_thumbnail_url(self) -> str: - """Get a thumbnail url for the video.""" + def get_thumbnail_url(self, size="x720") -> str: + """Get a thumbnail url for the video, with defined max size.""" request = None if self.thumbnail and self.thumbnail.file_exist(): # Do not serve thumbnail url directly, as it can lead to the video URL - im = get_thumbnail(self.thumbnail.file, "x170", crop="center", quality=80) + im = get_thumbnail(self.thumbnail.file, size, crop="center", quality=80) return im.url else: return "".join(