Exiting Pandora

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.

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.)

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.

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.