@
im85288, thanks for your mod ;-)
I think I have found a bug,
I use this for substitute favourite in advancedsettings.xml
Code:
<substitute>
<from>special://profile/favourites.xml</from>
<to>smb://SRV-KODI/repository/Userdata/favourites.xml</to>
</substitute>
On Home, with button favourite on bottom, I get my favourites
On Home, if I try to set widget to favourite I get this error in log:
Code:
17:25:56 T:3472 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\\Utilisateur\\AppData\\Roaming\\Kodi\\userdata\\favourites.xml')
Traceback (most recent call last):
File "C:\Users\Utilisateur\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 176, in <module>
Main()
File "C:\Users\Utilisateur\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 22, in __init__
found, favourites = self._read_file()
File "C:\Users\Utilisateur\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\\Utilisateur\\AppData\\Roaming\\Kodi\\userdata\\favourites.xml')
-->End of Python script error report<--
17:27:58 T:4620 NOTICE: Thread LanguageInvoker start, auto delete: false
Can you improve this to works with substitute path?
- Another bug, I can't manage categories if language is French, works only with English language
thanks for help