mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Change key for plexapi.LibrarySection.collection
This commit is contained in:
parent
e27efb3946
commit
25572d6a5b
1 changed files with 6 additions and 3 deletions
|
@ -767,7 +767,8 @@ class MovieSection(LibrarySection):
|
|||
|
||||
def collection(self, **kwargs):
|
||||
""" Returns a list of collections from this library section. """
|
||||
return self.search(libtype='collection', **kwargs)
|
||||
key = '/library/sections/%s/collections' % self.key
|
||||
return self.fetchItems(key, **kwargs)
|
||||
|
||||
def playlist(self, **kwargs):
|
||||
""" Returns a list of playlists from this library section. """
|
||||
|
@ -852,7 +853,8 @@ class ShowSection(LibrarySection):
|
|||
|
||||
def collection(self, **kwargs):
|
||||
""" Returns a list of collections from this library section. """
|
||||
return self.search(libtype='collection', **kwargs)
|
||||
key = '/library/sections/%s/collections' % self.key
|
||||
return self.fetchItems(key, **kwargs)
|
||||
|
||||
def playlist(self, **kwargs):
|
||||
""" Returns a list of playlists from this library section. """
|
||||
|
@ -938,7 +940,8 @@ class MusicSection(LibrarySection):
|
|||
|
||||
def collection(self, **kwargs):
|
||||
""" Returns a list of collections from this library section. """
|
||||
return self.search(libtype='collection', **kwargs)
|
||||
key = '/library/sections/%s/collections' % self.key
|
||||
return self.fetchItems(key, **kwargs)
|
||||
|
||||
def playlist(self, **kwargs):
|
||||
""" Returns a list of playlists from this library section. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue