Favourites.xml issue
#1
First up let me say fantastic skin - easy to use with a mouse and pleasant on the eyes. I find it much nicer than Estuary.

I seem to have a problem with favourites.xml - specifically, Black Nova crashes and gets corrupted because it can't find my path substituted favourites.xml file located on my server - instead it looks in the local profile directory, As I'm not a skinner, I'm not sure whether it's Black Nova or an addon script it uses. This is the relevant section in the kodi error log:

Code:
10:36:35.463 T:8264  NOTICE: ADDONS: Using repository repository.xbmc.org
10:36:35.518 T:8264 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
10:36:36.587 T:9236  NOTICE: WakeOnAccess [MYCLOUD] trigged by accessing : smb://MYCLOUD/kodi/userdata/Julie/favourites.xml
10:36:36.589 T:9236  NOTICE: WakeOnAccess success exit, server already running
10:36:36.801 T:9236   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\\Mick\\AppData\\Roaming\\Kodi\\userdata\\profiles\\Julie\\favourites.xml')
                                            Traceback (most recent call last):
                                              File "C:\Users\Mick\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 146, in <module>
                                                Main()
                                              File "C:\Users\Mick\AppData\Roaming\Kodi\addons\script.favourites\default.py", line 22, in __init__
                                                found, favourites = self._read_file()
                                              File "C:\Users\Mick\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\\Mick\\AppData\\Roaming\\Kodi\\userdata\\profiles\\Julie\\favourites.xml')
                                            -->End of Python script error report<--
10:36:49.862 T:8264   ERROR: Control 701 in window 10000 has been asked to focus, but it can't
10:36:59.548 T:8264   ERROR: Previous line repeats 12 times.
10:36:59.548 T:8264  NOTICE: Storing total System Uptime
10:36:59.548 T:8264  NOTICE: Saving settings
10:36:59.553 T:8264  NOTICE: Saving skin settings
10:36:59.556 T:8264  NOTICE: stop all
10:37:00.317 T:8264  NOTICE: stop player
10:37:00.317 T:8264  NOTICE: stopping upnp
10:37:00.546 T:8264  NOTICE: clean cached files!
10:37:00.592 T:8264  NOTICE: closing down remote control service
10:37:01.165 T:8264  NOTICE: stopped
10:37:01.366 T:8264  NOTICE: destroy
10:37:01.366 T:8264  NOTICE: unload skin
10:37:01.389 T:8264  NOTICE: unload sections
10:37:01.392 T:8264  NOTICE: special://profile/ is mapped to: special://masterprofile/
10:37:01.397 T:8264  NOTICE: application stopped...

And this is the snippet of my advancedsettings.xml file that has the path substitution:
Code:
<pathsubstitution>
    <substitute>
      <from>special://profile/playlists/</from>
      <to>smb://MYCLOUD/kodi/userdata/Julie/playlists/</to>
    </substitute>
    <substitute>
      <from>special://profile/favourites.xml</from>
      <to>smb://MYCLOUD/kodi/userdata/Julie/favourites.xml</to>
    </substitute>
  </pathsubstitution>
</advancedsettings>

For reference I am using Kodi 17.1 RC1 with a MySQL setup (individual DB's located on a local MySQL server). I have also put user playlists and favourites on the local server so users can move from device to device without having to redo playlists & favourites.[/php] Am I doing something wrong or is this a bug in the script somewhere?
Reply
#2
I think this is not a skin issue (you can try with another skin), but a general Kodi issue. You'd better ask in the general support section: http://forum.kodi.tv/forumdisplay.php?fid=111
Reply
#3
The skin is using script.favourites - path subs won't work within addons, so script.favourites is looking in userdata and can't find favourites.xml - this will happen on any skin that uses script.favourites.
Hacky workaround - stick another favourites.xml in userdata (you could maybe run a python script on startup to sync this with the pathsubbed one); something else I haven't thought of. Or don't pathsub favourites would be the easy option.
Reply
#4
Thanks guys, I'll just remove path subs.
Reply

Logout Mark Read Team Forum Stats Members Help
Favourites.xml issue0