Req Library.HasContent(albums/singles)
#1
I realised the other day that we can only check if there's music in the library and not whether specifically it's albums or singles hence the request. This would make it possible to add links to the home screen based on their availability.

Thanks.
Reply
#2
Seems like a useful thing to add, though I suspect the number of users where content is in the library yet HasContent(albums) returns false will be very, very small?
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
#3
Definitely, it was more to do with adding a direct link to Singles (now that I've worked out how to add mine to XBMC) and not wanting a dead link for users without any.
Reply
#4
Yeah that's what I was thinking also - I can't imagine you would have many (if any) people that would have only singles with absolutely no albums. Really you would only need Library.HasContent(singles) anyway because you could just have a condition for albums only like:
Code:
Library.HasContent(music) + !Library.HasContent(singles)

Edit.. I'm not really sure what you would ever use that for though...
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply

Logout Mark Read Team Forum Stats Members Help
Library.HasContent(albums/singles)0