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 e330dd8 commit 4f67155Copy full SHA for 4f67155
plexapi/mixins.py
@@ -406,11 +406,15 @@ def setArt(self, art):
406
class LogoUrlMixin:
407
""" Mixin for Plex objects that can have a logo url. """
408
409
+ @property
410
+ def logo(self):
411
+ """ Return the API path to the logo image. """
412
+ return next((i.url for i in self.images if i.type == 'clearLogo'), None)
413
+
414
@property
415
def logoUrl(self):
416
""" 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
417
+ return self._server.url(self.logo, includeToken=True) if self.logo else None
418
419
420
class LogoLockMixin:
0 commit comments