•   
  • 1
  • 11
  • 12
  • 13
  • 14(current)
  • 15
  •   
Release script favourites
very awesome
Reply
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)]
Reply
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!
Reply
Separate the params with &amp; instead of a comma
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
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&amp;changetitle=tru​e)</onclick>

Code:
14:58:46 T:6628   DEBUG: script.favourites: script version 6.0.1 started
14:58:46 T:6628   DEBUG: script.favourites: ### params: {'changetitle': 'tru\xe2\x80\x8be', 'property': 'FavWidget1'}

http://pastebin.com/aZakqwC0
Reply
nope that's not correct.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
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:Big GrinllLibCurlGlobal::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<--

Path_substitution (wiki)
Reply
path substitution simply does not work with addons.
there's no fix for it.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
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.
Reply
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
Reply
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.
.
Reply
i'm afraid your guess is as good as mine :-)
no idea, other then the file doesn't exist.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
Hi @ all Wink


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 Sad

Code:
20:33:48 T:6158905344 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'/var/mobile/Containers/Data/Application/69598EFF-C2DD-4D78-8128-64E076F4A72D/Library/Caches/home/userdata/favourites.xml')
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/69598EFF-C2DD-4D78-8128-64E076F4A72D/Library/Caches/home/addons/script.favourites/default.py", line 146, in <module>
Main()
File "/var/mobile/Containers/Data/Application/69598EFF-C2DD-4D78-8128-64E076F4A72D/Library/Caches/home/addons/script.favourites/default.py", line 22, in __init__
found, favourites = self._read_file()
File "/var/mobile/Containers/Data/Application/69598EFF-C2DD-4D78-8128-64E076F4A72D/Library/Caches/home/addons/script.favourites/default.py", line 46, in _read_file
self.doc = parse(self.fav_file)
File "/Users/Shared/jenkins/workspace/TVOS/tools/depends/xbmc-depends/appletvos9.1_arm64-target/lib/python2.7/xml/dom/minidom.py", line 1918, in parse
File "/Users/Shared/jenkins/workspace/TVOS/tools/depends/xbmc-depends/appletvos9.1_arm64-target/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
IOError: (2, 'No such file or directory', u'/var/mobile/Containers/Data/Application/69598EFF-C2DD-4D78-8128-64E076F4A72D/Library/Caches/home/userdata/favourites.xml')
-->End of Python script error report<--
Reply
...re @ all,

possible that anyone can help me out pls?

thx in advance Big Grin
Reply
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.
.
Reply
  •   
  • 1
  • 11
  • 12
  • 13
  • 14(current)
  • 15
  •   
 
Thread Rating:
  • 2 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
script favourites52