Recently Added infolabels now available in xbmc

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ronie Offline
Team-Kodi Member
Posts: 9,302
Joined: Jan 2009
Reputation: 161
Post: #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>

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2011-11-05 17:05 by ronie.)
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #2
good to know !

[Image: widget]
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)
find quote
BigNoid Offline
Team-Kodi Member
Posts: 3,151
Joined: Jul 2010
Reputation: 102
Location: Below sea level
Post: #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.
(This post was last modified: 2011-04-17 16:39 by BigNoid.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,858
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #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?
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #5
I'd vote for 10 being available

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
`Black Offline
Team-Kodi Member
Posts: 2,436
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #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: xp1080-21.png]
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,858
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #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
find quote
Sharpe Offline
Skilled Skinner
Posts: 1,032
Joined: Jul 2006
Reputation: 13
Location: North West England
Post: #8
+1 For that idea. 10 is a decent number I think.

Nice to see it integrated though!
find quote
amet Offline
Retired Team-Kodi Member
Posts: 4,091
Joined: Jul 2009
Reputation: 41
Location: Novi Sad / Dubai
Post: #9
it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

any issues let me know please
find quote
pecinko Online
Donor
Posts: 3,814
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #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

find quote
ronie Offline
Team-Kodi Member
Posts: 9,302
Joined: Jan 2009
Reputation: 161
Post: #11
amet Wrote:it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

cheers mate ;-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,858
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #12
amet Wrote:it is now 10 items, https://github.com/xbmc/xbmc/commit/ac7f...2c18d90e94

any issues let me know please

Cheers. Wink
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,858
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #13
Just tested out the 5 item version and everything runs nice and smooth, cheers guys.
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #14
So we need the newest xbmc version for this, yeah?
find quote
amet Offline
Retired Team-Kodi Member
Posts: 4,091
Joined: Jul 2009
Reputation: 41
Location: Novi Sad / Dubai
Post: #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
find quote
Post Reply