Project

General

Profile

Actions

Bug #245

closed

Confluence Lite > Home Addons - Script failure

Added by dandar3 over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Python Code and/or Scripts
Target version:
Start date:
12/08/2013
Due date:
% Done:

0%

Resolution:
fixed
Affected Version:

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

Screenshot1.png (255 KB) Screenshot1.png setup dandar3, 12/08/2013 08:31 PM
screenshot2.png (334 KB) screenshot2.png setup dandar3, 12/08/2013 08:32 PM
error_from_main.log (23.5 KB) error_from_main.log Error dandar3, 12/08/2013 08:32 PM
ok_from_addons.log (24.7 KB) ok_from_addons.log Success dandar3, 12/08/2013 08:32 PM
xbmcaddon.py.patch (1.4 KB) xbmcaddon.py.patch proposed fix dandar3, 12/08/2013 08:32 PM
Actions

Also available in: Atom PDF