Add alias posterUrl to thumbUrl

This commit is contained in:
JonnyWong16 2021-02-14 19:58:18 -08:00
parent b0780aaec8
commit 32f00e653a
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -96,6 +96,11 @@ class PosterUrlMixin(object):
thumb = self.firstAttr('thumb', 'parentThumb', 'granparentThumb')
return self._server.url(thumb, includeToken=True) if thumb else None
@property
def posterUrl(self):
""" Alias to self.thumbUrl."""
return self.thumbUrl
class PosterMixin(PosterUrlMixin):
""" Mixin for Plex objects that can have posters."""