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) |
RE: script favourites - new features - arithine - 2015-05-05 very awesome RE: script favourites - new features - braz - 2015-06-12 I'm trying to use script.favourites to populate widgets in Mimic. After looking at the readme, I added the following onclick to my Favorites widget button: Code: <onclick>RunScript(script.favourites,property=CustomFavourite.1)</onclick> I tried to use the following content path for the widget (I call the script from a custom window with id 1124): Code: $INFO[Window(1124).Property(CustomFavourite.1.List)] CustomFavourite.1.List stays empty, though, it never gets populated when selecting a favourite. Is there something obvious I'm doing wrong? Thanks! Update: Got it figured out after looking in my guisettings. Used the following to get the content path: Code: $INFO[Skin.String(CustomFavourite.1.List)] RE: script favourites - new features - braz - 2015-06-13 Is it possible to call the script like this? Code: RunScript(script.favourites,property=FavWidget1,playlists=window,changetitle=true) I'm using it to setup widgets so I don't want playlists to automatically play and I want the user to be able to change the label. Neither of those arguments do anything though, it always prompts whether playlists should play and it doesn't allow the user to set the label. Thanks! RE: script favourites - new featuresñ - ronie - 2015-06-13 Separate the params with & instead of a comma RE: script favourites - new features - braz - 2015-06-14 Doh! Thanks Ronie. Though it appears I still have an issue, can't get changetitle to work. Is this how "true" should show up in the log? Code: <onclick>RunScript(script.favourites,property=FavWidget1&changetitle=tru​e)</onclick> Code: 14:58:46 T:6628 DEBUG: script.favourites: script version 6.0.1 started http://pastebin.com/aZakqwC0 RE: script favourites - new features - ronie - 2015-06-14 nope that's not correct. script.favorite not correctly honoring advancesettings substitution? - nickharris76 - 2015-07-17 Hi all, I'm having an issue when using the Amber skin and path substitution for favourites (I have a lots of Kodi instances so use path substitution for many settings!). Unfortunately it seems the substitution isn't being correctly honored somewhere.. the favorites are fine using confluence, but when using Amber (which uses script.favourites) I get an error (see below) which stops the favouites being loaded into the skin. Anyone seen this problem before or got any ideas how to fix? Many Thanks, Nick 12:57:55 T:6924 INFO: Loading skin file: Home.xml, load type: KEEP_IN_MEMORY 12:57:55 T:4040 DEBUG: CRecentlyAddedJob::UpdateMusic() - Running RecentlyAdded home screen update 12:57:55 T:1380 NOTICE: Thread LanguageInvoker start, auto delete: false 12:57:55 T:1380 INFO: initializing python engine. 12:57:55 T:1380 DEBUG: CPythonInvoker(5, C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py): start processing 12:57:55 T:4264 NOTICE: Thread RSSReader start, auto delete: false 12:57:55 T:4264 DEBUG: CurlFile::Open(0F3BF920) http://feeds.feedburner.com/xbmc 12:57:55 T:4040 DEBUG: GetRecentlyAddedAlbumSongs() query: SELECT songview.* FROM (SELECT idAlbum FROM albumview ORDER BY idAlbum DESC LIMIT 10) AS recentalbums JOIN songview ON songview.idAlbum=recentalbums.idAlbum 12:57:55 T:4264 INFO: XCURL:llLibCurlGlobal::easy_aquire - Created session to http://feeds.feedburner.com 12:57:55 T:4040 DEBUG: CMusicDatabase::GetRecentlyAddedAlbums query: select * from albumview where strAlbum != '' order by idAlbum desc limit 10 12:57:55 T:1380 NOTICE: -->Python Interpreter Initialized<-- 12:57:55 T:1380 DEBUG: CPythonInvoker(5, C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py): the source file to load is "C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py" 12:57:55 T:1380 DEBUG: CPythonInvoker(5, C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py): setting the Python path to C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages 12:57:55 T:1380 DEBUG: CPythonInvoker(5, C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py): entering source directory C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites 12:57:55 T:1380 DEBUG: CPythonInvoker(5, C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py): instantiating addon using automatically obtained id of "script.favourites" dependent on version 2.12.0 of the xbmc.python api 12:57:55 T:4040 DEBUG: CRecentlyAddedJob::UpdateVideos() - Running RecentlyAdded home screen update 12:57:55 T:1380 DEBUG: script.favourites: script version 6.0.1 started 12:57:55 T:1380 DEBUG: script.favourites: ### params: {} 12:57:56 T:1380 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.IOError'> Error Contents: (2, 'No such file or directory', u'C:\\Users\\HARRIS_2\\AppData\\Roaming\\Kodi\\userdata\\favourites.xml') Traceback (most recent call last): File "C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 176, in <module> Main() File "C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 22, in __init__ found, favourites = self._read_file() File "C:\Users\HARRIS_2\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 46, in _read_file self.doc = parse(self.fav_file) File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\minidom.py", line 1918, in parse return expatbuilder.parse(file) File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse fp = open(file, 'rb') IOError: (2, 'No such file or directory', u'C:\\Users\\HARRIS_2\\AppData\\Roaming\\Kodi\\userdata\\favourites.xml') -->End of Python script error report<-- http://kodi.wiki/view/Path_substitution RE: script favourites - new features - ronie - 2015-07-17 path substitution simply does not work with addons. there's no fix for it. RE: script favourites - new features - X3773 - 2015-08-08 I'm running into the same problem with path substitution for favourites. Even though this addon can't fix that, this is something we need. RE: script favourites - new features - Johnoo - 2016-07-10 Is it possible to edit the script, to add more than one favorites, example favorites2 / favorites3. I`m familiar with superfavorites, but much prefer regular favorites script, runs much smoother,. Any info would be appreciated. thanks RE: script favourites - new features - scott967 - 2016-11-09 I have a skin user who reported an exception in script.favourites 7.1.1 on Kodi Beta 5 running on an ATV4. From the log it appears the xml.dom is failing in expatbuilder to open favouites.xml, though it seems like Kodi thinks the file does exist. Maybe a permission issue? I've asked user to verify favourites.xml exists. User's log is here: http://pastebin.com/vMrqQxGJ TIA scott s. . RE: script favourites - new features - ronie - 2016-11-09 i'm afraid your guess is as good as mine :-) no idea, other then the file doesn't exist. RE: script favourites - new features - j0k3r - 2016-11-11 Hi @ all Maybe its a problem with my tvOS version, im on tvOS 9.0 and in the log is something written with depends for tvOS 9.1, is that script needed to run the Skins or can I wipe that script, dunno why I get these probs with the favourites script Code: 20:33:48 T:6158905344 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- RE: script favourites - new features - j0k3r - 2016-11-17 ...re @ all, possible that anyone can help me out pls? thx in advance RE: script favourites - new features - scott967 - 2016-11-17 You might try first to use a file browser to look for and find the file favourites.xml in your Kodi userdata. Back it up (if desired) and delete it. That should stop the exception. Then try adding something as a "favourite" via the UI and see if Kodi has created the favourites.xml file again and if the script is throwing an exception still. If it is I don't know what to tell you as I don't know how Kodi does file access compared to the the python module used in script.favourites for your platform. As far as what the skin Aeon MQ5 does with the script, it runs each time you open the home (main) window on Kodi. Its purpose is to find data needed to display so-called "widgets" when you have the main menu focused on the "Favourites" entry. If the script can't run you won't get the widgets. In the settings / skin settings for Aeon MQ5 you can turn off the widgets (via radiobutton) for "favourites" , in that case the script won't run and you will never see the exception. scott s. . |