context.item.songartist: use Container.Update instead of ActivateWindow
authorClinton Ebadi <clinton@unknownlamer.org>
Mon, 27 Apr 2015 04:54:51 +0000 (00:54 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Mon, 27 Apr 2015 04:54:51 +0000 (00:54 -0400)
Container.Update will return to the previous window, whereas
ActivateWindow claims it will while in reality losing your navigation
history. Unfortunately does not seem to work with the Now Playing
screen.

context.item.songartist/addon.py

index b779a0b..9c46e08 100644 (file)
@@ -26,7 +26,7 @@ def main ():
                                                               'params': { 'filter': { 'field': 'artist',
                                                                                       'operator': 'is',
                                                                                       'value' : artist }}})))['result']['artists'][0]['artistid']
-    xbmc.executebuiltin ('ActivateWindow (Music,musicdb://artists/%s/)' % artistid)
+    xbmc.executebuiltin ('Container.Update ("musicdb://artists/%s/")' % artistid)
 
 if __name__ == '__main__':
     main ()