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
Fix PlayMedia builtin for smart playlists and playlists - Backport #16352
Conversation
… be recursively expanded
@DaveTBlake Tested it with a dummy playlist file:
And called it with Just noticed it because Emby for Kodi, which is using .strm files, doesn't work for widgets anymore in the latest Leia nightlies. I guess it's enough if you make somehow a exception for .strm files instead of using Edit: |
OK, I'll take a look. Using .strm files as music playlists has always been an undocumented feature that worked by accident as far as I can see. Yeap, I've had @notspiff confirm that .strm were only indended to hold one url. |
Just to prevent mistakes: PlayMedia() is acting weird anyway. As I told you in the past it's adding items to playlistid 0 instead of 1 for videos. We've bypassed this with a workaround in our code. But that's a different story :) |
Ok thanks for looking into it. We will arrange otherwise. Maybe update documentation now that this has been settled. |
I certainly would if it was clear where, I guess in the PlayMedia builtin API?
@sualfred I'm not someone that removes "accidents" people are using if I can help it, OTOH spiff is a reliable source regarding what Kodi was designed to do. As for PlayMedia() is acting weird I really can't comment, but it sounds like the type of item to be played being mis-identified. A set of tests that cover all the routes for starting playback (GUI, plugins, builtins, JSON etc.) of all the kinds of items that can be parameters (files, folders, playlists, smart playlists, etc.) and final media types that get played (video, music, picture - but not getting into media formats) would be so useful too. |
@DaveTBlake May I ask you to change that? I mean that PlayMedia is also adding the stuff to a playlist so both playback starts are somehow similar? Strms would still be just 1 valid URL, but we would have a playlist, which we could use. |
@sualfred I will certainly look more into what is happening with .strm, but I have been travelling so give me a couple of days to get onto it. |
@DaveTBlake |
Backport of #16327
Fixes the regression in
PlayMedia
builtin, which is broken in Leia when called for a playlist or smart playlist that needs to be recursively expanded into actual media items e.g. a smart playlist of artist or albums. Reported in https://forum.kodi.tv/showthread.php?tid=344892