Nevets
3 December 2015 22:32
1
Hi, I am a new OSMC user, and having a lot of fun tweaking it on my RasPi2. One quick question; When I am running Pandora I cannot figure out how to exit back to the main OSMC screen (this is without a keyboard; just a mouse). Do I have to have the keyboard hooked up, or am I missing something?
Thanks, and great work from the developers!
Cant do it.
You need to hit ‘Back’ on the remote or keyboard. Mouse-only doesnt have that function.
Nevets
3 December 2015 23:08
3
Thanks! Thats what I suspected,
If you are able to edit the pandoragui.py file you can map one of the buttons to the exit function. (Assuming this is the version you are using.)
from threading import Timer
import xbmc
import xbmcaddon
import xbmcgui
import os, sys
_settings = xbmcaddon.Addon()
_name = _settings.getAddonInfo('name')
_version = _settings.getAddonInfo('version')
_path = xbmc.translatePath( _settings.getAddonInfo('path') ).decode('utf-8')
_lib = xbmc.translatePath( os.path.join( _path, 'resources', 'lib' ) )
sys.path.append (_lib)
from utils import *
_NAME = _name.upper()
# ToDO: DRY these IDs
##
This file has been truncated. show original
Change this code starting at line 138:
elif controlID == BTN_TIRED:
#obj = self.getControl(BTN_TIRED)
#for attr in dir(obj):
# log( ">>> obj.%s = %s" % (attr, getattr(obj, attr)), xbmc.LOGDEBUG )
self.panda.addTiredSong()
self.panda.playNextSong()
To this:
elif controlID == BTN_TIRED:
#obj = self.getControl(BTN_TIRED)
#for attr in dir(obj):
# log( ">>> obj.%s = %s" % (attr, getattr(obj, attr)), xbmc.LOGDEBUG )
# self.panda.addTiredSong()
# self.panda.playNextSong()
self.panda.quit()
Last I read was that the pandora addon was no longer being maintained. Pandoki seemed to be the new go-to for pandora on Kodi. Maybe it behaves differently?
Pandoki is a plugin.
Mouse navigation from there would be the same as any other plugin.
Nevets
4 December 2015 03:42
7
Karnage: Thank you for the code: When I get back from a business trip next week, I may give it a try.
No worries Steve. (Yeah, I broke your code.)
If you are using a different Pandora addon, the edit should be just as easy, so let me know.