Add music folder to playlist using a button
#1
Hey! I would like to create a button that adds the current music album (when selected album, or when browsing that album) to the current playlist. Using something like

<onclick>PlayMedia($INFO[ListItem.FolderPath])</onclick>

clears the playlist, which is not what I am looking for. I need the same queuing behavior Kodi has when browsing the audio library.
Reply
#2
I know that there is a script that allows to play albums from the info dialog, but I don't know if its capiable of adding album to a playlist,
anyway take a look, maybe with some modification you will get it...
https://github.com/ronie/script.playalbum
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#3
tried the builtin "Queue" ?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
Code:
<onclick>SetFocus(LIST_ID)</onclick>
<onclick>Queue</onclick>
Reply
#5
Doesn't work.

ERROR: Keymapping error: no such action 'queue(/media/media2/music/bloc party/a weekend in the city [2007]/disc 01/)' defined

Queue without any parameter doesn't work either. I'm on DialogAlbumInfo.xml, and what I want is a button that does the same as context menu -> queue, both on album and artist level.

Thanks!
Reply
#6
i place my bet on 'not possible'.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
It should be possible when inside our musiclibrary part, if youre tryin to do that on widgets or someting else then probably the only way is to write a script for that. .
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#8
I'm in my musiclibrary, the window is dialogalbuminfo.xml called with the "info" button.
Reply
#9
you would need to close the dialog first, then it *might* work.

Code:
<onclick>Dialog.Close(all,true)</onclick>
<onclick>Queue</onclick>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#10
Thanks, going to give it a try asap.
Reply
#11
(2015-07-24, 01:20)ronie Wrote: you would need to close the dialog first, then it *might* work.

Code:
<onclick>Dialog.Close(all,true)</onclick>
<onclick>Queue</onclick>

Works! Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Add music folder to playlist using a button0