How set seasons number to listitem of type tvshow? [solved]
#1
How set seasons number to listitem of type tvshow?

actually i always have "Available: 0 seasons"

i am working on Kodi 19
i tried set listitem property "season" or "TotalSeasons" but not works

i tried also listitem.setinfo("video", ...) etc but nothing always remains at "0" seasons

Image
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
#2
@CastagnaIT
This is what I'm using for the below view in my skin mod:-
For Seasons - $INFO[ListItem.Property(TotalSeasons)]
For Episodes - $INFO[ListItem.Property(TotalEpisodes)]

Image

The above works fine for items in Kodi's library, but rather oddly I have noticed that it doesn't seem to work when browsing items inside the Netflix Addon. This was something I meant to query a while back when I first noticed it:-

Image
Reply
#3
i am talking about original estuary kodi skin

I need to figure out if it's a kodi bug or if it needs to be set differently

--

but thanks to point your problem
i will add support to this parameters for your skin
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
#4
(2020-05-15, 17:35)CastagnaIT Wrote: i am talking about original estuary kodi skin

I need to figure out if it's a kodi bug or if it needs to be set differently

--

but thanks to point your problem
i will add support to this parameters for your skin
Here's what I use with Kodi 18 and it works across skins.  I am getting ready to test Kodi 19.

mediaClass_text = 'video'
li.addContextMenuItems([ (addon.getLocalizedString(30347), 'Container.Refresh'), (addon.getLocalizedString(30346), 'Action(ParentDir)'), (addon.getLocalizedString(30348), 'XBMC.Action(Info)') ])
info = {
                        'duration': getSeconds(duration_text),
                        'genre': genre_text,
                        'year': release_year_text,
                        'title': title,
                        'plot': description_text,
                        'director': creator_text,
                        'tagline': tagline_text,
                        'writer': writer_text,
                        'cast': artist_text.split(','),
                        'artist': artist_text.split(','),
                        'rating': rating_val,
                        'code': imdb_text,
                        'mediatype': categories_text
                        'season': season_text,
                        'episode': episode_text,
                        'lastplayed': lastplayed_text,
                        'aired': aired_text,
                        'mpaa':content_rating_text,
                        'playcount':playcount,
                        'trailer':trailerurl,
                    }
                    li.setInfo(mediaClass_text, info)
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#5
After a big in depth analysis i fond the issue in the addon code...

@Dumyat 
suggest you to add a variable on your skin code of label
and add a fallback value that point to:

ListItem.Episode and ListItem.Season

to get the total seasons and episodes,
as is done by the original Kodi skin
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
#6
@CastagnaIT 
OK, thanks. I'll check it out.
I'm just waiting for a replacement Window 10 unit to arrive back from Intel, so swapping between a Shield and my trusty old Windows 7 machine at the moment.

I saw you got the seasons/episode working on the latest release....  Smile
Did you make some changes with the clearlogo and landscape images as well? I'm pretty sure I only used to get them for Netflix content only, but now seem to be getting them for everything.  Dunno, maybe they were there previously, but perhaps I just didn't notice Wink  

I also noticed a couple of things, which I'm not sure if you know about:-
1) All the TV shows I've looked at today don't seem to be showing any plot details for the actual episodes.
2) When I pull up Video Info Dialog screen for a TV Show, the year at the top of screen seems to be for most recent season. Is that by design? Normally, I would expect to see the year a programme first aired, ie the first season.
Cheers
Reply
#7
1) yes i see that "bug" too late... i forgot to add fallback to Plot info
2) netflix associates the year of the last season release, as the release year of the TV series, i do not know why

> Did you make some changes with the clearlogo and landscape images as well?

no only clean the variables
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply

Logout Mark Read Team Forum Stats Members Help
How set seasons number to listitem of type tvshow? [solved]0