def __init__(self, session, fullname, name, ref): self.skin = MC_VideoInfoView.skin Screen.__init__(self, session) self['actions'] = ActionMap(['OkCancelActions'], { 'cancel': self.close, 'ok': self.close }, -1) tlist = [] self['infolist'] = ServiceInfoList(tlist) currPlay = self.session.nav.getCurrentService() if currPlay is not None: stitle = currPlay.info().getInfoString(iServiceInformation.sTitle) if stitle == '': stitle = currPlay.info().getName().split('/')[-1] tlist.append(ServiceInfoListEntry('Title: ', stitle)) tlist.append( ServiceInfoListEntry( 'sNamespace: ', currPlay.info().getInfoString( iServiceInformation.sNamespace))) tlist.append( ServiceInfoListEntry( 'sProvider: ', currPlay.info().getInfoString( iServiceInformation.sProvider))) tlist.append( ServiceInfoListEntry( 'sTimeCreate: ', currPlay.info().getInfoString( iServiceInformation.sTimeCreate))) tlist.append( ServiceInfoListEntry( 'sVideoWidth: ', currPlay.info().getInfoString( iServiceInformation.sVideoWidth))) tlist.append( ServiceInfoListEntry( 'sVideoHeight: ', currPlay.info().getInfoString( iServiceInformation.sVideoHeight))) tlist.append( ServiceInfoListEntry( 'sDescription: ', currPlay.info().getInfoString( iServiceInformation.sDescription))) return
def __init__(self, session, fullname, name, ref): self.skin = MC_VideoInfoView.skin Screen.__init__(self, session) self["actions"] = ActionMap(["OkCancelActions"], { "cancel": self.close, "ok": self.close }, -1) tlist = [] self["infolist"] = ServiceInfoList(tlist) currPlay = self.session.nav.getCurrentService() if currPlay is not None: stitle = currPlay.info().getInfoString(iServiceInformation.sTitle) if stitle == "": stitle = currPlay.info().getName().split('/')[-1] tlist.append(ServiceInfoListEntry("Title: ", stitle)) tlist.append( ServiceInfoListEntry( "sNamespace: ", currPlay.info().getInfoString( iServiceInformation.sNamespace))) tlist.append( ServiceInfoListEntry( "sProvider: ", currPlay.info().getInfoString( iServiceInformation.sProvider))) tlist.append( ServiceInfoListEntry( "sTimeCreate: ", currPlay.info().getInfoString( iServiceInformation.sTimeCreate))) tlist.append( ServiceInfoListEntry( "sVideoWidth: ", currPlay.info().getInfoString( iServiceInformation.sVideoWidth))) tlist.append( ServiceInfoListEntry( "sVideoHeight: ", currPlay.info().getInfoString( iServiceInformation.sVideoHeight))) tlist.append( ServiceInfoListEntry( "sDescription: ", currPlay.info().getInfoString( iServiceInformation.sDescription)))
def __init__(self, session, fullname, name, ref): self.skin = EVOMC_AudioInfoView.skin Screen.__init__(self, session) self["actions"] = ActionMap(["OkCancelActions"], { "cancel": self.close, "ok": self.close }, -1) tlist = [] self["infolist"] = ServiceInfoList(tlist) currPlay = self.session.nav.getCurrentService() if currPlay is not None: stitle = currPlay.info().getInfoString( iServiceInformation.sTagTitle) if stitle == "": stitle = currPlay.info().getName().split('/')[-1] tlist.append(ServiceInfoListEntry("Title: ", stitle)) tlist.append( ServiceInfoListEntry( "Artist: ", currPlay.info().getInfoString( iServiceInformation.sTagArtist))) tlist.append( ServiceInfoListEntry( "Album: ", currPlay.info().getInfoString( iServiceInformation.sTagAlbum))) tlist.append( ServiceInfoListEntry( "Genre: ", currPlay.info().getInfoString( iServiceInformation.sTagGenre))) tlist.append( ServiceInfoListEntry( "Year: ", currPlay.info().getInfoString( iServiceInformation.sTimeCreate))) tlist.append( ServiceInfoListEntry( "Comment: ", currPlay.info().getInfoString( iServiceInformation.sTagComment)))