Kodi Community Forum
Release skin helper service - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
---- Thread: Release skin helper service (/showthread.php?tid=235676)



RE: skin helper service - Guilouz - 2016-02-07

(2016-02-07, 22:45)marcelveldt Wrote:
(2016-02-05, 13:31)Guilouz Wrote: I have create 2 color themes, one for day, one for night and they are located in /Users/Cyril/Library/Application Support/Kodi/userdata/addon_data/skin.eminence.2.mod/themes/

It should now be fixed on Git, can you confirm ?

It's not working, theme doesn't change automatically, I have reset my skin settings, create a day theme and a night theme and there is lot of error in log:

Code:
22:50:55 T:123145314263040  NOTICE: Skin Helper Service --> Kodi_Monitor: onDatabaseUpdated: video
22:50:55 T:123145314263040  NOTICE: Skin Helper Service --> Video database changed - type: unknown - resetAll: True, refreshing widgets....
22:51:06 T:123145305063424   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
22:51:06 T:140735277076480   ERROR: Control 3 in window 13000 has been asked to focus, but it can't
22:51:06 T:123145305063424   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:51:39 T:123145303990272   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/userdata/library/music
22:51:39 T:140735277076480   ERROR: Control 3 in window 13000 has been asked to focus, but it can't
22:51:42 T:123145315336192   ERROR: GetDirectory - Error getting None
22:51:51 T:140735277076480 WARNING: Skin has invalid include: FullscreenDimensions
22:51:52 T:123145315872768   ERROR: GetDirectory - Error getting None
22:52:00 T:140735277076480 WARNING: Skin has invalid include: FullscreenDimensions
22:52:21 T:123145303453696   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
22:52:21 T:140735277076480   ERROR: Control 3 in window 13000 has been asked to focus, but it can't
22:52:21 T:123145303453696   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:52:32 T:140735277076480  NOTICE: Samba is idle. Closing the remaining connections
22:52:39 T:140735277076480 WARNING: Cleanup: Having to cleanup texture common/white.png
22:52:39 T:140735277076480 WARNING: Skin has invalid include: FullscreenDimensions
22:52:42 T:123145303453696   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:52:42 T:123145315872768 WARNING: JpegIO: Error 55: Not a JPEG file: starts with 0x%02x 0x%02x
22:52:45 T:140735277076480 WARNING: Skin has invalid include: FullscreenDimensions
22:52:50 T:123145302839296   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
22:52:50 T:140735277076480   ERROR: Control 3 in window 13001 has been asked to focus, but it can't
22:52:50 T:123145302839296   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:53:00 T:140735277076480 WARNING: Cleanup: Having to cleanup texture common/white.png
22:53:00 T:140735277076480 WARNING: Skin has invalid include: FullscreenDimensions
22:53:02 T:123145302839296   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:53:02 T:123145325531136 WARNING: JpegIO: Error 55: Not a JPEG file: starts with 0x%02x 0x%02x
22:53:05 T:123145303990272   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
22:53:05 T:140735277076480   ERROR: Control 3 in window 13002 has been asked to focus, but it can't
22:53:05 T:123145303990272   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:53:22 T:140735277076480   ERROR: Control 3 in window 13002 has been asked to focus, but it can't
22:53:24 T:123145303990272   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
22:53:24 T:140735277076480   ERROR: Control 3 in window 13002 has been asked to focus, but it can't
22:53:24 T:123145303990272   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/
22:53:29 T:123145303990272   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
22:53:29 T:140735277076480   ERROR: Control 3 in window 13002 has been asked to focus, but it can't
22:53:29 T:123145303990272   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/


EDIT: Theme change automatically but not at the desired time.
Code:
23:01:52 T:123145305063424   ERROR: Traceback (most recent call last):
23:01:52 T:123145305063424   ERROR:   File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py", line 31, in setDayNightTheme
23:01:52 T:123145305063424   ERROR:     dt = datetime(*(time.strptime(timevalue, "%H:%M")[0:6]))
23:01:52 T:123145305063424   ERROR:   File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.6/_strptime.py", line 454, in _strptime_time
23:01:52 T:123145305063424   ERROR:   File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.6/_strptime.py", line 325, in _strptime
23:01:52 T:123145305063424   ERROR: ValueError: time data u'' does not match format '%H:%M'



RE: skin helper service - User 224999 - 2016-02-08

(2016-02-07, 23:44)Guilouz Wrote: EDIT: Theme change automatically but not at the desired time.


You can ignore this warning:
DeprecationWarning: object.__init__() takes no parameters


As for the time, did you set it in 24 hour format ?

Something like 07:00 or 23:00 ?


RE: skin helper service - tomer953 - 2016-02-08

Hey Marcel,
in your spare time:
http://pastebin.com/dWw2EF3X
please take a look at line 356. one of my skin users sent it to me.
10Q


RE: skin helper service - User 224999 - 2016-02-08

(2016-02-08, 10:28)tomer953 Wrote: Hey Marcel,
in your spare time:
http://pastebin.com/dWw2EF3X
please take a look at line 356. one of my skin users sent it to me.
10Q

It means your filename is too long ;-)
Please use some shorter filenames


RE: skin helper service - tomer953 - 2016-02-08

(2016-02-08, 15:25)marcelveldt Wrote:
(2016-02-08, 10:28)tomer953 Wrote: Hey Marcel,
in your spare time:
http://pastebin.com/dWw2EF3X
please take a look at line 356. one of my skin users sent it to me.
10Q

It means your filename is too long ;-)
Please use some shorter filenames

Thank You.


RE: skin helper service - bsoriano - 2016-02-08

Hello Marcel,

Thank you for adding a Next Aired widget using the Next Aired Addon. However, the widget you added is for TV Shows, and not for Episodes. Would you consider adding a Next Aired episodes widget? This, in my opinion, is more useful than the TV shows one, so that you can have information about the episodes which are airing today from the TV shows. I would imagine that the episode (season and episode number, episode title) information is available via the addon, since it is shown when you run the addon.

Thanks for considering my request.

Regards,

Bart


RE: skin helper service - Angelinas - 2016-02-08

Marcel, is this normal code for BW and color background wall images...?
Code:
$INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)]
$INFO[Window(Home).Property(SkinHelper.AllMoviesBackground.Wall)]
Dont working for me ,actaly working but script provide color wall images with name
BW_SkinHelper.AllMoviesBackground.Wall.0.jpg

Both code showing wall images but in script folder both images are same...can you fix for Black&White

I change in BackgroundsUpdater.py
PHP Code:
blackWhite True 
and create BW WallImages ,
but this is not clean solution ,You have radiobutton,preffer Black & White wall images...This dont working .


RE: skin helper service - Guilouz - 2016-02-09

(2016-02-08, 00:40)marcelveldt Wrote:
(2016-02-07, 23:44)Guilouz Wrote: EDIT: Theme change automatically but not at the desired time.


You can ignore this warning:
DeprecationWarning: object.__init__() takes no parameters


As for the time, did you set it in 24 hour format ?

Something like 07:00 or 23:00 ?

Yes in 24 hour format.


RE: skin helper service - Hustler1337 - 2016-02-09

Hi Guys,

I'm trying to add a duration label in my skin in the format: xhrs xmins

This is what I have:

PHP Code:
<label>$INFO[Window(Home).Property(SkinHelper.ListItemDuration.Hours)]hrs $INFO[Window(Home).Property(SkinHelper.ListItemDuration.Minutes)]mins</label

The problem is, for videos that have a duration of less than one hour (e.g. most episodes, the results are displayed like this:

Code:
0hrs 45mins

Instead, I'd like it to appear simply as:

Code:
45 mins

How can I achieve this?

Thanks


RE: skin helper service - Jayz2K - 2016-02-09

@Hustler1337

Code:
<label>$VAR[MyTime]</label>

<variable name="MyTime">
    <value condition="StringCompare(Window(Home).Property(SkinHelper.ListItemDuration.Hours),0)">$INFO[Window(Home).Property(SkinHelper.ListItemDuration.Minutes),,mins]</value>
    <value condition="!StringCompare(Window(Home).Property(SkinHelper.ListItemDuration.Hours),0)">$INFO[Window(Home).Property(SkinHelper.ListItemDuration.Hours),,hrs ]$INFO[Window(Home).Property(SkinHelper.ListItemDuration.Minutes),,mins]</value>
</variable>

?


RE: skin helper service - User 224999 - 2016-02-09

(2016-02-08, 20:30)Angelinas Wrote: Marcel, is this normal code for BW and color background wall images...?
Code:
$INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)]
$INFO[Window(Home).Property(SkinHelper.AllMoviesBackground.Wall)]

No,

just use $INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)]

when you enable the black and white setting, it will be black and white...


RE: skin helper service - Angelinas - 2016-02-10

(2016-02-09, 22:24)marcelveldt Wrote:
(2016-02-08, 20:30)Angelinas Wrote: Marcel, is this normal code for BW and color background wall images...?
Code:
$INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)]
$INFO[Window(Home).Property(SkinHelper.AllMoviesBackground.Wall)]

No,

just use $INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)]

when you enable the black and white setting, it will be black and white...
I didnt explain well,sorry.
I set with radio button in script settings "preffer Black & White wall images"
clear wall images and rebuild wall images again.
Script build wall images but they are colorful, not black&white....
Skin showing wall images with code $INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)] that isnt problem.Problem is script building wall Images B&W Smile


RE: skin helper service - User 224999 - 2016-02-10

(2016-02-08, 17:41)bsoriano Wrote: Hello Marcel,

Thank you for adding a Next Aired widget using the Next Aired Addon. However, the widget you added is for TV Shows, and not for Episodes. Would you consider adding a Next Aired episodes widget? This, in my opinion, is more useful than the TV shows one, so that you can have information about the episodes which are airing today from the TV shows. I would imagine that the episode (season and episode number, episode title) information is available via the addon, since it is shown when you run the addon.

Thanks for considering my request.

Regards,

Bart

The episode info is provided by the widget. You need to use the correct listitem properties to show that info.
For more info see the wiki from NextAired addon.

BTW: I am thinking about creating my own implementation of nextaired info through plugin listing as it is more flexible imo.
The current implementation parses the home properties of the nextaired info and converts it into a listitem listing.


RE: skin helper service - User 224999 - 2016-02-10

(2016-02-10, 10:58)Angelinas Wrote: I didnt explain well,sorry.
I set with radio button in script settings "preffer Black & White wall images"
clear wall images and rebuild wall images again.
Script build wall images but they are colorful, not black&white....
Skin showing wall images with code $INFO[Window(Home).Property(BW_SkinHelper.AllMoviesBackground.Wall)] that isnt problem.Problem is script building wall Images B&W Smile

I get it. I guess the code broke when I refactored it a few weeks back.
I will change it completely so that both color and b&w will always be available.
I'll let you know once it's completed


RE: skin helper service - bsoriano - 2016-02-10

(2016-02-10, 13:30)marcelveldt Wrote:
(2016-02-08, 17:41)bsoriano Wrote: Hello Marcel,

Thank you for adding a Next Aired widget using the Next Aired Addon. However, the widget you added is for TV Shows, and not for Episodes. Would you consider adding a Next Aired episodes widget? This, in my opinion, is more useful than the TV shows one, so that you can have information about the episodes which are airing today from the TV shows. I would imagine that the episode (season and episode number, episode title) information is available via the addon, since it is shown when you run the addon.

Thanks for considering my request.

Regards,

Bart

The episode info is provided by the widget. You need to use the correct listitem properties to show that info.
For more info see the wiki from NextAired addon.

BTW: I am thinking about creating my own implementation of nextaired info through plugin listing as it is more flexible imo.
The current implementation parses the home properties of the nextaired info and converts it into a listitem listing.

Thanks Marcel! Looking forward to your implementation.

Regards,

Bart


This forum uses Lukasz Tkacz MyBB addons.