Bug #245
closedConfluence Lite > Home Addons - Script failure
0%
Description
Forum thread:
http://www.xbmc4xbox.org.uk/forum/viewtopic.php?f=6&t=1599
From adding more debug information to the log (cwd, id, locations) it appears that when the addon is called from the Home Page (using ActivateWindow) the cwd variable is blank and that seems to cause the issue. When running the same addon from the Video > Addons it seems to work ok, cwd is populated correctly. To make things even more confusing when testing, if you run it first from Video > Addons, it seems to work later from Home screen.
I would think a solution is changing xbmcaddons.py at line 43 where it's trying to build the plugin://video/xxx path from the id, I think that's incorrect (generating in fact plugin://plugin/video).
I've attached logs with each scenario and a diff with a proposed fix. A small addition if a blank cwd is valid is to not add it to "locations", to speed things up a little in that case.
Files
Updated by dandar3 over 11 years ago
- File Screenshot1.png Screenshot1.png added
- File screenshot2.png screenshot2.png added
- File error_from_main.log error_from_main.log added
- File ok_from_addons.log ok_from_addons.log added
- File xbmcaddon.py.patch xbmcaddon.py.patch added
FAIL - Home > Video > Shortcuts
19:43:21 M: 29556736 DEBUG: xbmcaddon: cwd =
19:43:21 M: 29556736 DEBUG: xbmcaddon: id = plugin.video.youtube
19:43:21 M: 29556736 DEBUG: xbmcaddon: locations = ['', '/plugin.video.youtube', 'Q:\\scripts\\.modules\\plugin.video.youtube', 'plugin://plugin/video']
OK - Video > Addons
19:44:54 M: 28540928 DEBUG: xbmcaddon: cwd = plugin://video/YouTube
19:44:54 M: 28540928 DEBUG: xbmcaddon: id = plugin.video.youtube
19:44:54 M: 28540928 DEBUG: xbmcaddon: locations = ['plugin://video/YouTube', 'plugin://video/YouTube/plugin.video.youtube', 'Q:\\scripts\\.modules\\plugin.video.youtube', 'plugin://plugin/video']
Updated by buzz over 11 years ago
- Status changed from New to Resolved
- Assignee set to buzz
- Resolution set to fixed
thanks for the patch. applied in r32563.