Let's also thumbnail the now playing widget

This commit is contained in:
2023-03-28 15:24:04 -04:00
parent c39430e987
commit 76cc1f7b1c
8 changed files with 36 additions and 29 deletions

View File

@ -155,11 +155,11 @@ class Video(ScrobblableMixin):
return self.imdb_link
@property
def primary_image_url(self) -> str:
url = ""
def primary_image(self) -> Optional["ImageField"]:
img = None
if self.cover_image:
url = self.cover_image.url
return url
img = self.cover_image
return img
def fix_metadata(self, force_update=False):
imdb_dict = lookup_video_from_imdb(self.imdb_id)