def __init__(self, session): self.session = session self.subsSettings = initSubsSettings() session.openWithCallback(self.subsChooserCB, SubsChooser, self.subsSettings, searchSupport=True, historySupport=True, titleList=self.getTitleList())
def openSubtitlesSearch(session, **kwargs): settings = initSubsSettings().search eventList = [] eventNow = session.screen["Event_Now"].getEvent() eventNext = session.screen["Event_Next"].getEvent() if eventNow: eventList.append(eventNow.getEventName()) if eventNext: eventList.append(eventNext.getEventName()) session.open(SubsSearch, E2SubsSeeker(session, settings), settings, searchTitles=eventList, standAlone=True)
def openSubsSupportSettings(session, **kwargs): settings = initSubsSettings() session.open(SubsSupportSettings, settings, settings.search, settings.external, settings.embedded, config.plugins.subsSupport.dvb)