mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 21:08:27 +00:00
Rename mixins
This commit is contained in:
parent
4a2086a798
commit
21f29f4373
3 changed files with 8 additions and 8 deletions
|
@ -4,7 +4,7 @@ from urllib.parse import quote_plus
|
|||
from plexapi import library, media, utils
|
||||
from plexapi.base import Playable, PlexPartialObject
|
||||
from plexapi.exceptions import BadRequest
|
||||
from plexapi.mixins import SplitMerge, UnmatchMatch
|
||||
from plexapi.mixins import SplitMergeMixin, UnmatchMatchMixin
|
||||
|
||||
|
||||
class Audio(PlexPartialObject):
|
||||
|
@ -124,7 +124,7 @@ class Audio(PlexPartialObject):
|
|||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Artist(Audio, SplitMerge, UnmatchMatch):
|
||||
class Artist(Audio, SplitMergeMixin, UnmatchMatchMixin):
|
||||
""" Represents a single Artist.
|
||||
|
||||
Attributes:
|
||||
|
@ -227,7 +227,7 @@ class Artist(Audio, SplitMerge, UnmatchMatch):
|
|||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Album(Audio, UnmatchMatch):
|
||||
class Album(Audio, UnmatchMatchMixin):
|
||||
""" Represents a single Album.
|
||||
|
||||
Attributes:
|
||||
|
|
|
@ -5,7 +5,7 @@ from plexapi import utils
|
|||
from plexapi.exceptions import NotFound
|
||||
|
||||
|
||||
class SplitMerge(object):
|
||||
class SplitMergeMixin(object):
|
||||
""" Mixin for Plex objects that can be split and merged."""
|
||||
|
||||
def split(self):
|
||||
|
@ -26,7 +26,7 @@ class SplitMerge(object):
|
|||
return self._server.query(key, method=self._server._session.put)
|
||||
|
||||
|
||||
class UnmatchMatch(object):
|
||||
class UnmatchMatchMixin(object):
|
||||
""" Mixin for Plex objects that can be unmatched and matched."""
|
||||
|
||||
def unmatch(self):
|
||||
|
|
|
@ -5,7 +5,7 @@ from urllib.parse import quote_plus, urlencode
|
|||
from plexapi import library, media, settings, utils
|
||||
from plexapi.base import Playable, PlexPartialObject
|
||||
from plexapi.exceptions import BadRequest, NotFound
|
||||
from plexapi.mixins import SplitMerge, UnmatchMatch
|
||||
from plexapi.mixins import SplitMergeMixin, UnmatchMatchMixin
|
||||
|
||||
|
||||
class Video(PlexPartialObject):
|
||||
|
@ -260,7 +260,7 @@ class Video(PlexPartialObject):
|
|||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Movie(Playable, Video, SplitMerge, UnmatchMatch):
|
||||
class Movie(Playable, Video, SplitMergeMixin, UnmatchMatchMixin):
|
||||
""" Represents a single Movie.
|
||||
|
||||
Attributes:
|
||||
|
@ -384,7 +384,7 @@ class Movie(Playable, Video, SplitMerge, UnmatchMatch):
|
|||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Show(Video, SplitMerge, UnmatchMatch):
|
||||
class Show(Video, SplitMergeMixin, UnmatchMatchMixin):
|
||||
""" Represents a single Show (including all seasons and episodes).
|
||||
|
||||
Attributes:
|
||||
|
|
Loading…
Add table
Reference in a new issue