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
added: ability to open the smartplaylisteditor for a given playlist #6966
Conversation
Maybe I'm missing something but why are you guessing for the type? If the XSP file exists it should also contain the type of the smartplaylist. |
i'm guessing based on the folder names. special://videoplaylists/blah.xsp sure, we could open the xsp instead in principle. in any case the editor requires that we specify this up front for which controls are visible etc. not my invention. reason i'm guessing is that we may be creating a new file. in that case, i cannot read it from a nonexistent xsp. |
Yes but for that you need to set |
I dont do any of those things. |
As in read again and consider nonexistent files. |
// guess type | ||
if (type.empty()) | ||
{ | ||
if (startupList.find("video") > -1) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
OK for non-existing files that makes sense. But it still looks to me like you need to
|
5efb5e6
to
5965b43
Compare
rebased and fixed. can't get it less ugly. |
note that i removed the ability to open new files due to API issues (only a single string parameter is passed on from builtins/event server). |
if (URIUtils::PathEquals(startupList, CProfilesManager::Get().GetUserDataItem("PartyMode-Video.xsp"))) | ||
party = 2; | ||
|
||
if (party || m_playlist.Load(startupList)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
5965b43
to
c474bdd
Compare
c474bdd
to
d8e1a32
Compare
Should be good now, thanks. |
Thanks for adding this feature. |
So will this make it into master in some form? |
Most likely, yes. Spiff doesn't want to handle the PRs himself, so he went and closed them, but we're still keeping track of them. We just have to wait for master to be un-feature frozen. |
Thanks 👍 |
Requested in forums, ref http://forum.kodi.tv/showthread.php?tid=224034