Kodi Community Forum

Full Version: skin helper service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In your skin working...new script.......yeeeeeeeeees
Just to find how you enable pvr thumbs and where Smile
If you have time wright here and in readme in git hub,just to everybody know SmileSmileSmile

Image
(2015-09-29, 22:49)Angelinas Wrote: [ -> ]In your skin working...new script.......yeeeeeeeeees
Just to find how you enable pvr thumbs and where Smile
If you have time wright here and in readme in git hub,just to everybody know SmileSmileSmile

It already is in the readme:

You must set the following Skin Bool to true --> SkinHelper.EnablePVRThumbs for the scraper to activate.
PHP Code:
    <control type="radiobutton" id="9234">
    <!--
Prikazuje PVR Ikone -->
    <include>
TopMenuButton</include>
    <
label>PVR Thums ON</label>
    <
selected>Skin.HasSetting(SkinHelper.EnablePVRThumbs)</selected>
    <
onclick>Skin.ToggleSetting(SkinHelper.EnablePVRThumbs)</onclick>
    </
control
I create this radio button in top menu and now working like charm Smile

Now script is redy for official repo go for it Smile
Image


Marcel
Image
Great!
Thanks was not aware it now needed to be enabled Smile
Hi Marcel, have you seen my question about infolabels ?
2118888 (post)
I'm on Jarvis
(2015-09-30, 08:39)Jayz2K Wrote: [ -> ]Hi Marcel, have you seen my question about infolabels ?
2118888 (post)
I'm on Jarvis
Marcel
What time zone is showing for this $INFO[Container(510).ListItem.Property(StartTime), is it GMT -1 (I am in CET)
I'll try in your skin in my Mod same "champions league" starting in 20:40 in widget showing 18:40 Huh (-2 Hour)
In windows for PVR show corect velues 20:40 (but here is code $INFO[ListItem.StartTime] provided by Kodi)

Image

Image
(2015-09-29, 16:42)Jayz2K Wrote: [ -> ]in the itemlayout / focusedlayout, only ListItem.EndTime is showing ? EDIT : Also ListItem.ChannelName returns empty. I can still use ListItem.Label but it then displays something else in case it's not PVR.

EDIT 2 : Ah, got it by looking at the PluginContent.py. Seems it needs to be ListItem.Property(StartTime) and ListItem.Property(ChannelName). Any reason it's not set as li.setInfo like others ? Moreover these properties return time as HH:MM: SS instead of HH:MM AM/PM or HH:MM in 24h format(not sure it's usefull to have the seconds showing).

Also I noticed that using ListItem.Icon returns your generated thumbs which is pretty nice Smile But since I have most of them in cache, is there still needs to use the multiimage control to generate them or is it also generated in background for widget ?

You must use ListItem.Property(StartTime) etc. I tried to set the Infolabels but Kodi doesn't accept them, seems that those special PVR InfoLabels can't be set from python code. Also I'm figuring out the date format. It looks like the json call for the PVR returns the time from the guide which isn't adjusted to the time settings of the user...
Latest Git has the fix for the correct date notation in the widgets:

ListItem.Property(StartTime) -->start time time (in correct time format and gmt)
ListItem.Property(StartDate) -->start date (in correct date format)

ListItem.Property(EndTime) -->endtime time (in correct time format and gmt)
ListItem.Property(EndDate) -->enddate (in correct date format)

ListItem.Property(Date) --> startdate starttime-endtime

ListItem.Property(Channel) --> channel name
ListItem.Property(ChannelIcon) --> channel icon (if available)
ListItem.Property(Episodename) --> name of episode (if available)
ListItem.Art(fanart), poster, thumb --> artwork (if available)
1 major feature I wish all added info scripts do is download and store the info offline like pvr images go to recording folder or other location.

I live in the middle of Australia and don't have good net access.

Offline metadata is a great feature and more portable and I understand that not many will need thia feature but please consider it.

I understand it stores it in a cache and you could move it around.

P.S loving your script so far and will minimize addons. Thankz
Are you thinking of adding more Duration formats for make it easier to change the default hh:mm to like hhHmmM or hh Hour (or Hours past 2) and mm Minutes eg. 2 hours and 6 minutes.

I understand it might be more skin side to do this since you made it easy with different duration strings
(2015-10-01, 00:34)marcelveldt Wrote: [ -> ]Latest Git has the fix for the correct date notation in the widgets:

ListItem.Property(StartTime) -->start time time (in correct time format and gmt)
ListItem.Property(StartDate) -->start date (in correct date format)

ListItem.Property(EndTime) -->endtime time (in correct time format and gmt)
ListItem.Property(EndDate) -->enddate (in correct date format)

ListItem.Property(Date) --> startdate starttime-endtime

ListItem.Property(Channel) --> channel name
ListItem.Property(ChannelIcon) --> channel icon (if available)
ListItem.Property(Episodename) --> name of episode (if available)
ListItem.Art(fanart), poster, thumb --> artwork (if available)

Thanks Marcel,

I have 2 more questions :

- How is display the TV Channel widget ? On my side, it seems it only shows channels with epg, which is not really convenient when a channel hasn't but is available. My backend sometimes needs some time after a standby resume to populate the epg, so I don't all channels until then. Also, some channels just don't have epg (some cases with IPTV). Any chance to get ALL Channels ?
- I don't get how to get the ListItem.Duration for songs (also tried ListItem.Label2 but no luck). Is this one missing or need another typo ? I didn't find it in PluginContent.py

Thanks
I think the duration part is in the library monitor.
It is for movies and sets
(2015-10-01, 08:48)Rjsachse Wrote: [ -> ]I think the duration part is in the library monitor.
It is for movies and sets

Works for songs

EDIT : Seems that I don't get the properties to work anymore for PVR. Is it just me ?
Another issue I have spotted it looks like the pvr show posters and constantly getting downloaded. Or is it jist me I see in the thumbs folders the poster but still don't show straight away.