Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mysb based playlists from Deezer to be played #630

Merged
merged 4 commits into from Jul 4, 2021

Conversation

philippe44
Copy link
Contributor

@philippe44 philippe44 commented Jul 2, 2021

This is not a ready for use PR, but just a status of where I am wrt playlists as favorites for protocol handler like Deezer.

First, I'm not sure this is not a complex solution for a simple problem => when I add the result of a Deezer menu item (say a search for album) as a favorite, the favorites.opml registers the http:// link with the search keys/values with a type "playlist". As far as I can see, it is all fine then, I can later browse that favorite and play it. When playing it, the player's tracklist is loaded with all the tracks. There is no need of "exploding" anything as LMS use getFeedAsync to obtain the sub-items of that favorite, because it's a feed type "playlist" and then LMS populates the tracklist with individual items.

Now, if the favorite is a type "audio" and not "playlist", it's a different story as here what LMS handles it not an opml feed, but a "source" playlist like in m3u (not sure I got my terminology right). That mean that it is not a browsable item and when played, a single item will be added to the tracklist. When going through tracks of that playlist, visually we'll stay on the single playlist entry, but we go through real tracks one by one. That's where LMS uses the difference between _track and _currentTrack (see my long comment in DEVELOPERS.txt) where _track is the playlist's entry that never changes and _currentTrack is the individual "real" track that is currently playing.

So that PR deals with that type of playlist when they are Deezer entries. Is this really needed? I don't know as, per above, so far when I add a Deezer menu item a favorite, it comes with a "playlist" type, so it works as a browsable opml feed.

@mherger mherger changed the title WIP for playlist & Deezer Allow mysb based playlists from Deezer to be played Jul 4, 2021
@mherger mherger merged commit 1f65222 into LMS-Community:public/8.2 Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants