Release script.playalbum - Play an Album from Album Info screen
#1
In the same way you can play a Movie from the Movie Info screen I want to be able to play an Album from the Album Info screen but nothing I try works.

Surely this should do it?
PHP Code:
<onclick>PlayMedia($INFO[ListItem.FileNameAndPath])</onclick

Even adding ,isdir doesn't work.

Anyone know the answer?

Thanks.
Reply
#2
try Container.FolderPath
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
#3
That only uses - musicdb://3/
Reply
#4
Tried ListItem.Path yet?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#5
Yes, everything I try throws this error -

ERROR: CDVDPlayer::OpenInputStream - error opening [G:\NZB\Download\Nirvana - Nevermind\]

Code:
Container.FolderPath - musicdb://3/

ListItem.FileNameAndPath - smb://HAL_NAS/Volume_1/Music/The Chemical Brothers - Further/

ListItem.Path - smb://HAL_NAS/Volume_1/Music/
Reply
#6
good practice, put quotes around the path:
Quote:<onclick>PlayMedia(&quot;$INFO[ListItem.FileNameAndPath]&quot; )</onclick>

no clue if it'll fix your issue, but it wouldn't hurt either.
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
Thanks, but no joy.

Enabled full debugging and noticed this error -

Code:
ERROR: CWINFileSMB: Unable to open file '\' Error '123
Reply
#8
I can't even get it to the point where it tries to play it Wink
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#9
Hm, from a brief look PlayMedia is pretty much build for video content. Mind creating a ticket so we do not forget about it?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#10
Thought I'd try using that for videos and Ronie is indeed right the &quot; tags are needed but trying to play an album always throws error 123 when trying to open the file.
Reply
#11
I suppose I could use a script to make a playlist like the RecentlyAdded script used.
Reply
#12
@Hitcher: Currently there is no other way - unfortunately PlayMedia(directory) will only find video files in given directory.

Plans for future: Part of my work on playlists will be unifying playback starting and this should take care of this inconvenience.
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#13
Thanks for help and for clearing it up.
Reply
#14
Could someone give me a hand writing a script to play the album please as Python isn't my thing?

Thanks.
Reply
#15
Hitcher Wrote:Could someone give me a hand writing a script to play the album please as Python isn't my thing?

didn't have time to look into it, until today.

here's what i came up with:
script.playalbum-0.0.1.zip


add this to a button in DialogAlbumInfo.xml:
Quote:<onclick>RunScript(script.playalbum,artist=$INFO[ListItem.Artist]&amp;album=$INFO[ListItem.Album])</onclick>

lemme know if you encounter any issues :-)


edit:
xbmc pre-eden only!
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

Logout Mark Read Team Forum Stats Members Help
script.playalbum - Play an Album from Album Info screen0