Project

General

Profile

Actions

Bug #245

closed

Confluence Lite > Home Addons - Script failure

Added by dandar3 over 11 years ago. Updated over 11 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

Updated by dandar3 over 11 years ago

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']

Actions #2

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.

Actions #3

Updated by buzz over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF