Kodi Community Forum
Release script favourites - 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 script favourites (/showthread.php?tid=114671)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


RE: script favourites - ronie - 2019-12-14

not a whole lot you can do, addons do not support path substitution.


RE: script favourites - Uatschitchun - 2019-12-16

Hm :-(
I tried setting the full path to the favorites.xml in default.py (instead of special://...) but that didn't work either?


RE: script favourites - ronie - 2019-12-17

if only things were that easy ;-)

give that another shot with version:
script.favourites-7.1.4.zip


RE: script favourites - Uatschitchun - 2019-12-19

I'll test asap.
Atm I can't test, as the skin that's using it (xonfluence) always runs out of memory on RPi3 cause of filter nodes needed for my custom main menu... :-(


RE: script favourites - .:B:. - 2020-01-15

This may sound like a silly question, but I cannot find the favourites script in the Kodi repo (clean LibreELEC 9.2.0 / Kodi 18.5 setup). I've seen my skin moan about it a few times though in the Kodi log.

Am I overlooking something? Searching the add-ons for 'favori' or 'favouri' should match, I reckon... The wiki suggests the add-on is still alive.

Thanks!


RE: script favourites - ronie - 2020-01-15

helper addons will not show up in a search, they are meant to be installed automatically when you install a skin that requires it.

if that somehow did not happen, you can get it here:
http://mirrors.kodi.tv/addons/leia/script.favourites/


RE: script favourites - .:B:. - 2020-01-15

Thanks ronie. Check my skin's dependencies - no trace of the script in its addon.xml indeed.


RE: script favourites - scott967 - 2020-04-19

Ver 8.1.0 error after new install in Kodi 19 master nightly (sticky repo tester)

This error came up after installing script.favourites in the sticky repo tester but I don't think it is related to the PR.  See log  efopiyiwed.kodi (paste)
I took a look at the code and it seems like a bit has changed on how favourites are stored?  Anyway my guess is that  _get_favs isn't returning anything on a fresh install so favourites isn't defined hence _set_properties(listing) is bombing out?

scott s.
.


RE: script favourites - ronie - 2020-04-20

thanx for the report @scott967 
indeed the addon will crash if no favourites are found.

will fix...


RE: script favourites - scott967 - 2020-07-03

Ver 8.1.1 is terminating in latest nightlies (tested Win x64 0702).

Problem is when call to json is made:
Code:
data = xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Favourites.GetFavourites", "params":{"properties":["window", "windowparameter", "thumbnail", "path"]}, "id":1}')

the response I'm getting from Kodi is:
Code:
script.favourites: favs: {'error': {'code': -32601, 'message': 'Method not found.'}, 'id': 1, 'jsonrpc': '2.0'}
so getting a KeyError exception when _get_favs tries to return with ['result']


RE: script favourites - ronie - 2020-07-03

please provide a full Debug Log.


RE: script favourites - bsoriano - 2020-07-03

@ronie , I have been asked many times, and, while I know the answer to be no, figured I would ask you.  Is there any way to have the favorites dialog support changing view types? Or is this a core limitation/design choice and not controlled by the addon?

Thanks for your help.

Regards,

Bart


RE: script favourites - scott967 - 2020-07-03

(2020-07-03, 21:25)ronie Wrote: please provide a full Debug Log.

Here you go:

remocamive.kodi (paste)

script is launched from skin home window via:
Code:
<onload condition="System.HasAddon(script.favourites) + ![String.IsEmpty(skin.string(favouriteswidget)) | Skin.HasSetting(nofavouriteswidget)]">RunScript(script.favourites)</onload>


note that I added a log export in favourites.py to see what the favs variable was getting from Kodi.

Edit:

Did a little snooping in the log and I see
Code:
JSONRPC v11.11.0: Successfully initialized
is getting logged after the script runs.  But looking at other nightlies running the same skin I see that line before the script runs.  Maybe that has something to do with it?  (race condition)

scott s.
.


RE: script favourites - ronie - 2020-07-03

(2020-07-03, 21:37)bsoriano Wrote: @ronie , I have been asked many times, and, while I know the answer to be no, figured I would ask you.  Is there any way to have the favorites dialog support changing view types? Or is this a core limitation/design choice and not controlled by the addon?

Thanks for your help.

Regards,

Bart

the favourites dialog is part of kodi, it indeed is not related to this addon.
only media windows support multiple views. regular windows (and all dialogs) don't have this functionality.


RE: script favourites - ronie - 2020-07-04

(2020-07-03, 21:47)scott967 Wrote: Did a little snooping in the log and I see
Code:
JSONRPC v11.11.0: Successfully initialized
is getting logged after the script runs. 

yeah, that could indeed be the issue. if json is not up-and-running, i guess all addons that make a json-rpc request will fail.
i did some testing and i can reproduce it... even with older nightlies from 6 months ago.

could you create an issue for it? https://github.com/xbmc/xbmc/issues