• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 8
  • Next 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
Recently Added infolabels now available in xbmc
#1
if your skin is eden-pre / nightly build compatible, please note:
as of today the recentlyadded script is not needed anymore.
the functionality has been moved to xbmc itself (thanx firnsy & amet)!

there hardly shouldn't be any need to update your skins for this change
as all infolabels stay the same.

the only thing that needs to be done is to remove the code you use to launch the script
and remove the dependency from your addon.xml!



Available labels:

Totals
Code:
Movies.Count
Movies.Watched
Movies.UnWatched
TVShows.Count
TVShows.Watched
TVShows.UnWatched
Episodes.Count
Episodes.Watched
Episodes.UnWatched
MusicVideos.Count
MusicVideos.Watched
MusicVideos.UnWatched
Music.SongsCount
Music.AlbumsCount
Music.ArtistsCount

Movies
Code:
LatestMovie.[1-10].Title
LatestMovie.[1-10].Year
LatestMovie.[1-10].RunningTime
LatestMovie.[1-10].Rating
LatestMovie.[1-10].Plot
LatestMovie.[1-10].Trailer
LatestMovie.[1-10].Thumb
LatestMovie.[1-10].Fanart
LatestMovie.[1-10].Path

TV Shows
Code:
LatestEpisode.[1-10].ShowTitle
LatestEpisode.[1-10].EpisodeTitle
LatestEpisode.[1-10].EpisodeNo
LatestEpisode.[1-10].EpisodeSeason
LatestEpisode.[1-10].EpisodeNumber
LatestEpisode.[1-10].Rating
LatestEpisode.[1-10].Plot
LatestEpisode.[1-10].Thumb
LatestEpisode.[1-10].Fanart
LatestEpisode.[1-10].Path

MusicVideos
Code:
LatestMusicVideo.[1-10].Title
LatestMusicVideo.[1-10].Thumb
LatestMusicVideo.[1-10].Year
LatestMusicVideo.[1-10].Plot
LatestMusicVideo.[1-10].RunningTime
LatestMusicVideo.[1-10].Path
LatestMusicVideo.[1-10].Artist
LatestMusicVideo.[1-10].Fanart

Songs
Code:
LatestSong.[1-10].Title
LatestSong.[1-10].Artist  
LatestSong.[1-10].Album
LatestSong.[1-10].Year  
LatestSong.[1-10].Rating
LatestSong.[1-10].Thumb
LatestSong.[1-10].Fanart
LatestSong.[1-10].Path

Albums (these are new!)
Code:
LatestAlbum.[1-10].Title
LatestAlbum.[1-10].Artist
LatestAlbum.[1-10].Year    
LatestAlbum.[1-10].Rating
LatestAlbum.[1-10].Thumb
LatestAlbum.[1-10].Fanart  
LatestAlbum.[1-10].Path


as you can see Songs and Albums have been separated and this is the only change compared to the recently added script.


you can use the Latest*.[1-5].Path to play Movies, Episodes and Songs this way:
Code:
<onclick>PlayMedia(&quot;$INFO[Window.Property(Latest*.1.Path)]&quot;)</onclick>

for albums, use this code:
Code:
<onclick>PlayList.Clear</onclick>
<onclick>PlayMedia(&quot;$INFO[Window.Property(LatestAlbum.1.Path)]&quot;)</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
#2
good to know !
Image
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
Reply
#3
So it's limited to 5 items?
EDIT: after looking in the code I see it's indeed limited to five items. Is there a specific reason for this? I use 8 items in my skin. Also I see there's no option for hiding the unwatched items for showing up in the list, but I guess this can be added with visibility conditions.

Anyway it's great to see native support for this. Now I can finally get rid of the script running everytime the home window is loaded, thx.
Reply
#4
This is certainly excellent news I to am curious about the limit to 5 items.

While Alaska Revisited uses 10 items (dropping to 5 items wont affect the look of the skin in any way because of the way they're shown one at a time) this will screw up my next skin because it's been designed to display a row of 6 items for Movies, Episodes and Albums.

Perhaps an advanced settings option similar to the current recently added limit?
Reply
#5
I'd vote for 10 being available
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#6
There should be an option to specify the number of items available in the addon.xml, so every skin could have it's own setting.
Image
Reply
#7
`Black Wrote:There should be an option to specify the number of items available in the addon.xml, so every skin could have it's own setting.

This sounds like the best option to me. Nod
Reply
#8
+1 For that idea. 10 is a decent number I think.

Nice to see it integrated though!
Reply
#9
it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

any issues let me know please
Reply
#10
amet Wrote:it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

any issues let me know please

Guys, thanks for implementing this natively. Still waiting for nighty build to test this, will post findings.


A suggestion - make this universal fetcher with configurable parameter for choosing between

- recently added
- random
- unwatched
- most played albums

We could expose those in skin settings, and user could choose what suits him best. We could the pass this using Skin.String(foo) to get:

Code:
(Latest)Movie.[1-5].Title
(Unwatched)Movie.[1-5].Title
(Random)Movie.[1-5].Title
(MostPlayed)Album.[1-5].Title
My skins:

Amber
Quartz

Reply
#11
amet Wrote:it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

cheers mate ;-)
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
#12
amet Wrote:it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

any issues let me know please

Cheers. Wink
Reply
#13
Just tested out the 5 item version and everything runs nice and smooth, cheers guys.
Reply
#14
So we need the newest xbmc version for this, yeah?
Image
To learn more, click here.
Reply
#15
igotdvds Wrote:So we need the newest xbmc version for this, yeah?

As it's always the case with the feature that is added yesterday Smile
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 8
  • Next 



Recently Added infolabels now available in xbmc00