recently added albums
#1
could someone tell me what the correct "Container.Content()" variable is for this area, i would like to set directly ie not by doing !Container.Content() for all other known areas, just it is not listed in the online manual ?

cheers
Reply
#2
andyblac Wrote:could someone tell me what the correct "Container.Content()" variable is for this area, i would like to set directly ie not by doing !Container.Content() for all other known areas, just it is not listed in the online manual ?

cheers

not sure if there's a Container.Content() for it, as an alternative you could use:
substring(container.folderpath,musicdb://6/)
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
ronie Wrote:not sure if there's a Container.Content() for it, as an alternative you could use:
substring(container.folderpath,musicdb://6/)

cheers, i'll give it a go

EDIT: yup it worked Smile thanks
Reply
#4
The content type there *SHOULD* be albums, as that's what you have.

If it's not, let us know as it needs fixing.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
jmarshall Wrote:The content type there *SHOULD* be albums, as that's what you have.

If it's not, let us know as it needs fixing.

it not it you set container.content(albums) in:

Recently Added Albums
Recently Played Albums
Compilations

you get nothing

this what i had to do to get everything working.

PHP Code:
<visible>[Container.Content(albums) + !IsEmpty(ListItem.Label2)] | [[substring(container.folderpath,musicdb://5/1/,Left) | substring(container.folderpath,musicdb://5/2/,Left) | substring(container.folderpath,musicdb://6/,Right) | substring(container.folderpath,musicdb://7/,Right) | substring(container.folderpath,musicdb://8/,Right)] + !IsEmpty(ListItem.Label2)]</visible> 
Reply
#6
r22037 should allow you to simplify your code a bit Smile

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
jmarshall Wrote:r22037 should allow you to simplify your code a bit Smile

Cheers,
Jonathan

thanks Big Grin
Reply
#8
found another one,

Container.Content(songs) is not working whilst your in playlists.

i have to use:
PHP Code:
substring(container.folderpath,special://profile/playlists/music/,Left) 
Reply
#9
Please add a trac ticket and cc me. Thanks!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
recently added albums0