mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 05:30:20 +00:00
Add alias posterUrl to thumbUrl
This commit is contained in:
parent
b0780aaec8
commit
32f00e653a
1 changed files with 5 additions and 0 deletions
|
@ -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."""
|
||||
|
|
Loading…
Reference in a new issue