Add generalized cover field for scobblable things

This commit is contained in:
2023-03-22 18:27:04 -04:00
parent bc59ff66eb
commit 15be4e0068
11 changed files with 680 additions and 13 deletions

View File

@ -154,6 +154,13 @@ class Video(ScrobblableMixin):
def link(self):
return self.imdb_link
@property
def primary_image_url(self) -> str:
url = ""
if self.cover_image:
url = self.cover_image.url
return url
def fix_metadata(self, force_update=False):
imdb_dict = lookup_video_from_imdb(self.imdb_id)
if not imdb_dict: