Kodi Community Forum
[FRODO release] Skin Widgets - 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: [FRODO release] Skin Widgets (/showthread.php?tid=142389)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


RE: [FRODO release] Skin Widgets - Wanilton - 2012-11-27

@Martijn,

If you are building against XBMC HEAD (ie. Frodo) then this commit will break scripts, It is because "runtime" has been changed from a string to an integer (and is in seconds so it also needs to be divided by 60 too).

I receive error now in your script, because this change in master code.

Thanks,







RE: [FRODO release] Skin Widgets - lrusak - 2012-11-27

Yes I get script failed script.skin.widgets

PHP Code:
05:18:34 T:2854497088   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.TypeError'>
                                            
Error Contentsargument "value" for method "setProperty" must be unicode or str
                                            Traceback 
(most recent call last):
                                              
File "/storage/.xbmc/addons/service.skin.widgets/default.py"line 685in <module>
                                                
Main()
                                              
File "/storage/.xbmc/addons/service.skin.widgets/default.py"line 66in __init__
                                                self
._fetch_info_randomitems()
                                              
File "/storage/.xbmc/addons/service.skin.widgets/default.py"line 119in _fetch_info_randomitems
                                                self
._fetch_movies('RandomMovie')
                                              
File "/storage/.xbmc/addons/service.skin.widgets/default.py"line 183in _fetch_movies
                                                self
.WINDOW.setProperty("%s.%d.Runtime"         % (requestcount), item['runtime'])
                                            
TypeErrorargument "value" for method "setProperty" must be unicode or str
                                            
-->End of Python script error report<-- 

full log: http://sprunge.us/aeBT


RE: [FRODO release] Skin Widgets - Wanilton - 2012-11-27

for fix this error, change line 183 - default.py file

Code:
self.WINDOW.setProperty("%s.%d.Runtime"         % (request, count), str(item['runtime'] / 60))

This solve error or wait for Martijn, maybe have other solution or more fixes, for me work great again.


RE: [FRODO release] Skin Widgets - lrusak - 2012-11-27

looks like it was fixed, https://github.com/XBMC-Addons/service.skin.widgets/commit/8f728561f35def4210539253417e69dd67211dc7


RE: [FRODO release] Skin Widgets - Martijn - 2012-11-27

Translation
Script is added to Transifex


RE: [FRODO release] Skin Widgets - pkscout - 2012-11-28

I've been modding the Frodo Confluence skin to support this. One of the things I'd like to do is have recent TV Shows show unplaced recent items but have movies show all recent items. If you'd like I'd be happy to workon that this weekend (i have an idea that should take only some minor code modifications) and then do a pull request..


RE: [FRODO release] Skin Widgets - Martijn - 2012-11-28

(2012-11-28, 09:35)pkscuot Wrote: I've been modding the Frodo Confluence skin to support this. One of the things I'd like to do is have recent TV Shows show unplaced recent items but have movies show all recent items. If you'd like I'd be happy to workon that this weekend (i have an idea that should take only some minor code modifications) and then do a pull request..

This will create too much options. I want to keep it as simple as possible else i could go and add another 50 options


RE: [FRODO release] Skin Widgets - mikebzh44 - 2012-11-28

(2012-11-27, 22:09)Martijn Wrote: Translation
Script is added to Transifex
Where your script can be found ?

It's not listed in French part :

https://www.transifex.com/projects/p/XBMC-Main-Frodo/language/fr/



RE: [FRODO release] Skin Widgets - Martijn - 2012-11-28

https://www.transifex.com/projects/p/xbmc-addons/


RE: [FRODO release] Skin Widgets - mikebzh44 - 2012-11-28

Thanks.

Randomize time (minutes) = 5 means script will refresh every 5 minutes ?

Because randomize is not very easy to translate in french :S


RE: [FRODO release] Skin Widgets - Martijn - 2012-11-28

(2012-11-28, 10:40)mikebzh44 Wrote: Thanks.

Randomize time (minutes) = 5 means script will refresh every 5 minutes ?

Because randomize is not very easy to translate in french :S

correct


RE: [FRODO release] Skin Widgets - mikebzh44 - 2012-11-28

French translation is OK on Transifex.

Didn't translate "Skin widgets" in summary and description fields in addon.xml as I think you will change them to a longer explaination Big Grin


RE: [FRODO release] Skin Widgets - MassIV - 2012-12-02

-plz ignore, add-ons had not self updated yet-


RE: [FRODO release] Skin Widgets - fmronan - 2012-12-04

I have error, with the last xbmc build with ubuntu
I use your 0.14 script
Code:
18:09:50 T:2901408624   ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
18:09:50 T:2901408624   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: argument "value" for method "setProperty" must be unicode or str
                                            Traceback (most recent call last):
                                              File "/home/guevel/.xbmc/addons/service.skin.widgets/default.py", line 685, in <module>
                                                Main()
                                              File "/home/guevel/.xbmc/addons/service.skin.widgets/default.py", line 66, in __init__
                                                self._fetch_info_randomitems()
                                              File "/home/guevel/.xbmc/addons/service.skin.widgets/default.py", line 119, in _fetch_info_randomitems
                                                self._fetch_movies('RandomMovie')
                                              File "/home/guevel/.xbmc/addons/service.skin.widgets/default.py", line 183, in _fetch_movies
                                                self.WINDOW.setProperty("%s.%d.Runtime"         % (request, count), item['runtime'])
                                            TypeError: argument "value" for method "setProperty" must be unicode or str
                                            -->End of Python script error report<--



Re: RE: [FRODO release] Skin Widgets - Martijn - 2012-12-04

(2012-12-04, 19:12)fmronan Wrote: I have error, with the last xbmc build with ubuntu
I use your 0.14 script

Sorry but I really don't care.
If you still can't follow forum rules by now.

DO NOT POST SNIPPETS!!!!!!!

How difficult can it be to just follow them.
I will plain ignore anyone who does this