importing base.PlexPartialObject and applying it to library.Collections

this will allow collections to use the base.PlexPartialObject.edit method
This commit is contained in:
blacktwin 2020-06-12 14:14:09 -04:00
parent 6dc19386c2
commit 9685b57ad2

View file

@ -2,7 +2,7 @@
from urllib.parse import quote, quote_plus, unquote, urlencode from urllib.parse import quote, quote_plus, unquote, urlencode
from plexapi import X_PLEX_CONTAINER_SIZE, log, utils from plexapi import X_PLEX_CONTAINER_SIZE, log, utils
from plexapi.base import PlexObject from plexapi.base import PlexObject, PlexPartialObject
from plexapi.exceptions import BadRequest, NotFound from plexapi.exceptions import BadRequest, NotFound
from plexapi.media import MediaTag from plexapi.media import MediaTag
from plexapi.settings import Setting from plexapi.settings import Setting
@ -1084,7 +1084,7 @@ class Hub(PlexObject):
@utils.registerPlexObject @utils.registerPlexObject
class Collections(PlexObject): class Collections(PlexPartialObject):
""" Represents a single Collection. """ Represents a single Collection.
Attributes: Attributes: