mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Add thumbUrl and artUrl to plexapi Collections
* pkkid/python-plexapi#651
This commit is contained in:
parent
d5fd5778dd
commit
4a463f04f1
1 changed files with 11 additions and 1 deletions
|
@ -1595,7 +1595,17 @@ class Collections(PlexPartialObject):
|
||||||
@deprecated('use "items" instead')
|
@deprecated('use "items" instead')
|
||||||
def children(self):
|
def children(self):
|
||||||
return self.fetchItems(self.key)
|
return self.fetchItems(self.key)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def thumbUrl(self):
|
||||||
|
""" Return the thumbnail url for the collection."""
|
||||||
|
return self._server.url(self.thumb, includeToken=True) if self.thumb else None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def artUrl(self):
|
||||||
|
""" Return the art url for the collection."""
|
||||||
|
return self._server.url(self.art, includeToken=True) if self.art else None
|
||||||
|
|
||||||
def item(self, title):
|
def item(self, title):
|
||||||
""" Returns the item in the collection that matches the specified title.
|
""" Returns the item in the collection that matches the specified title.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue