4 from Screens.MessageBox import MessageBox
5 from Tools import Notifications
8 from Components.config import config
10 class MainPictureAdapter:
11 backgroundCapable = True
12 def __init__(self, session):
13 self.navcore = session.nav
16 if config.plugins.epgrefresh.enablemessage.value:
17 Notifications.AddNotification(MessageBox, _("EPG refresh starts scanning channels."), type=MessageBox.TYPE_INFO, timeout=4)
18 self.previousService = self.navcore.getCurrentlyPlayingServiceReference()
21 def play(self, service):
22 print "[EPGRefresh.MainPictureAdapter.play]"
23 return self.navcore.playService(service)
26 if self.previousService is not None or Screens.Standby.inStandby:
27 self.navcore.playService(self.previousService)