Update plexapi==4.13.4

This commit is contained in:
JonnyWong16 2023-03-10 11:06:27 -08:00
parent b7da2dedf3
commit eb7495e930
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
18 changed files with 187 additions and 75 deletions

View file

@ -827,7 +827,7 @@ class PlexServer(PlexObject):
return notifier
def transcodeImage(self, imageUrl, height, width,
opacity=None, saturation=None, blur=None, background=None,
opacity=None, saturation=None, blur=None, background=None, blendColor=None,
minSize=True, upscale=True, imageFormat=None):
""" Returns the URL for a transcoded image.
@ -842,6 +842,7 @@ class PlexServer(PlexObject):
saturation (int, optional): Change the saturation of the image (0 to 100).
blur (int, optional): The blur to apply to the image in pixels (e.g. 3).
background (str, optional): The background hex colour to apply behind the opacity (e.g. '000000').
blendColor (str, optional): The hex colour to blend the image with (e.g. '000000').
minSize (bool, optional): Maintain smallest dimension. Default True.
upscale (bool, optional): Upscale the image if required. Default True.
imageFormat (str, optional): 'jpeg' (default) or 'png'.
@ -861,6 +862,8 @@ class PlexServer(PlexObject):
params['blur'] = blur
if background is not None:
params['background'] = str(background).strip('#')
if blendColor is not None:
params['blendColor'] = str(blendColor).strip('#')
if imageFormat is not None:
params['format'] = imageFormat.lower()