We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a19428 commit 1589e28Copy full SHA for 1589e28
plexapi/mixins.py
@@ -412,11 +412,15 @@ def deleteArt(self):
412
class LogoUrlMixin:
413
""" Mixin for Plex objects that can have a logo url. """
414
415
+ @property
416
+ def logo(self):
417
+ """ Return the API path to the logo image. """
418
+ return next((i.url for i in self.images if i.type == 'clearLogo'), None)
419
+
420
@property
421
def logoUrl(self):
422
""" Return the logo url for the Plex object. """
- image = next((i for i in self.images if i.type == 'clearLogo'), None)
- return self._server.url(image.url, includeToken=True) if image else None
423
+ return self._server.url(self.logo, includeToken=True) if self.logo else None
424
425
426
class LogoLockMixin:
0 commit comments