Skip to content

Commit

Permalink
Merge pull request #117 from fmauNeko/feature/playlists_uri
Browse files Browse the repository at this point in the history
Implement jellyfin:playlists uri for Iris
  • Loading branch information
mcarlton00 authored Feb 26, 2022
2 parents 0cb6a8a + e0a24ae commit 005dc7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mopidy_jellyfin/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def browse(self, uri):
albums = self.backend.remote.get_all_albums()
return [self.backend.remote.get_album_as_ref(album)
for album in albums]

# Used for browsing playlists in Iris
if uri.startswith('jellyfin:playlists'):
return self.backend.playlists.as_list()

# move one level lower in directory tree
if uri.startswith('jellyfin:') and len(parts) == 3:
Expand Down

0 comments on commit 005dc7d

Please sign in to comment.