mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
Ignore download session images, isnt use my plexpai
it was a example for a users.
This commit is contained in:
parent
26bf4ca010
commit
168d94e67a
2 changed files with 3 additions and 10 deletions
|
@ -3,7 +3,8 @@ exclude_lines =
|
|||
pragma: no cover
|
||||
raise NotImplementedError
|
||||
raise Unsupported
|
||||
raise Exception
|
||||
except ImportError
|
||||
def __repr__
|
||||
def __bool__
|
||||
if __name__ == .__main__.:
|
||||
if __name__ == .__main__.:
|
||||
|
|
|
@ -74,14 +74,6 @@ def cast(func, value):
|
|||
return value
|
||||
|
||||
|
||||
def getattributeOrNone(obj, self, attr):
|
||||
""" Returns result from __getattribute__ or None if not found. """
|
||||
try:
|
||||
return super(obj, self).__getattribute__(attr)
|
||||
except AttributeError:
|
||||
return None
|
||||
|
||||
|
||||
def joinArgs(args):
|
||||
""" Returns a query string (uses for HTTP URLs) where only the value is URL encoded.
|
||||
Example return value: '?genre=action&type=1337'.
|
||||
|
@ -198,7 +190,7 @@ def toList(value, itemcast=None, delim=','):
|
|||
return [itemcast(item) for item in value.split(delim) if item != '']
|
||||
|
||||
|
||||
def downloadSessionImages(server, filename=None, height=150, width=150, opacity=100, saturation=100):
|
||||
def downloadSessionImages(server, filename=None, height=150, width=150, opacity=100, saturation=100): # pragma: no cover
|
||||
""" Helper to download a bif image or thumb.url from plex.server.sessions.
|
||||
|
||||
Parameters:
|
||||
|
|
Loading…
Reference in a new issue