2017-09-05, 07:39
@yhs4260 I've taken a look at your log, thanks.
The problem seems to be with Kodi, as it's returning the file paths without the slash when responding to a JSON-RPC Files.GetDirectory query.
The script queries Kodi for the contents of the Movies/2017 directory:
and Kodi replies with the following (edited to show a subset of movie data):
As you can see, the slashes are missing in the reply from Kodi, so this would appear to be an error in the Kodi JSON-RPC processing, and this then leads to the subsequent errors you saw in your Kodi log when the script attempts to refresh these non-existent files.
Since this problem doesn't occur with nfs:// or smb:// sources it would appear to be specific to this type of http source that you are using.
You should open a ticket on trac.kodi.tv for the attention of @Montellese.
The problem seems to be with Kodi, as it's returning the file paths without the slash when responding to a JSON-RPC Files.GetDirectory query.
The script queries Kodi for the contents of the Movies/2017 directory:
Code:
2017-08-29 09:53:51.966314:MainThread: libDirectory.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"directory": "http://10.8.0.1:40080/Movies/2017", "media": "files", "properties": ["file", "lastmodified"]}, "method": "Files.GetDirectory", "id": "libDirectory"}]
Code:
2017-08-29 09:53:52.503402:MainThread: libDirectory.PARSING JSON DATA: {"id":"libDirectory","jsonrpc":"2.0","result":{"files":[{"file":"http://10.8.0.1:40080/Movies/201768.Kill.2017.720p.WEB-DL.H264.AC3-EVO.mkv","filetype":"file","label":"68.Kill.2017.720p.WEB-DL.H264.AC3-EVO.mkv","lastmodified":"2017-08-15 18:06:00","type":"unknown"},{"file":"http://10.8.0.1:40080/Movies/2017A.Cure.for.Wellness.2017.720p.BRRip.X264.AC3-EVO.mkv","filetype":"file","label":"A.Cure.for.Wellness.2017.720p.BRRip.X264.AC3-EVO.mkv","lastmodified":"2017-05-28 20:10:00","type":"unknown"},
...
{"file":"http://10.8.0.1:40080/Movies/2017xXx.Return.of.Xander.Cage.2017.BRRip.XviD.AC3-EVO.avi","filetype":"file","label":"xXx.Return.of.Xander.Cage.2017.BRRip.XviD.AC3-EVO.avi","lastmodified":"2017-05-09 23:57:00","type":"unknown"}],"limits":{"end":138,"start":0,"total":138}}}
As you can see, the slashes are missing in the reply from Kodi, so this would appear to be an error in the Kodi JSON-RPC processing, and this then leads to the subsequent errors you saw in your Kodi log when the script attempts to refresh these non-existent files.
Since this problem doesn't occur with nfs:// or smb:// sources it would appear to be specific to this type of http source that you are using.
You should open a ticket on trac.kodi.tv for the attention of @Montellese.