Skip to content

Commit 0259eea

Browse files
committed
correct new tidal method
1 parent 25431b0 commit 0259eea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plexapi/myplex.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,12 @@ def podcasts(self):
647647
elem = ElementTree.fromstring(req.text)
648648
return self.findItems(elem)
649649

650-
def tidal(self, maxresults=50):
650+
def tidal(self):
651651
""" Returns a list of tidal Hub items :class:`~plexapi.library.Hub`
652652
"""
653-
return self.batchingItems(self.MUSIC, maxresults)
653+
req = requests.get(self.MUSIC, headers={'X-Plex-Token':self._token})
654+
elem = ElementTree.fromstring(req.text)
655+
return self.findItems(elem)
654656

655657

656658
class MyPlexUser(PlexObject):

0 commit comments

Comments
 (0)