Skip to content

Instantly share code, notes, and snippets.

@sreichholf
Last active December 16, 2015 23:59
Show Gist options
  • Save sreichholf/5517723 to your computer and use it in GitHub Desktop.
Save sreichholf/5517723 to your computer and use it in GitHub Desktop.
def someFunction(arg1, arg2, arg3="test"):
.....
event = None
def getCurrentServiceEvent():
epgcache = eEPGCache.getInstance()
if epgcache is not None:
sref = self.session.nav.getCurrentlyPlayingServiceReference()
if sref is not None:
event = epgcache.lookupEvent(['RIBDT', (sref.toString(), 0, -1, -1)])
return event
event = blockingCallFromMainThread(getCurrentServiceEvent)
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment