def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) self.mediaPath = config.plugins.dreamplex.mediafolderpath.value self.EXpicloadPoster = ePicLoad() self.EXpicloadBackdrop = ePicLoad() self.EXscale = (AVSwitch().getFramebufferScale()) self.whatPoster = None self.whatBackdrop = None self.parentSeasonId = None self.parentSeasonNr = None self.isTvShow = False self["poster"] = Pixmap() self["mybackdrop"] = Pixmap() self["title"] = Label() self["tag"] = Label() self["shortDescription"] = Label() self["genre"] = Label() self["year"] = Label() self["runtime"] = Label() self["total"] = Label() self["current"] = Label() self["quality"] = Label() self["sound"] = Label() self["key_red"] = StaticText(_("Sort: ") + _("Default")) self["key_green"] = StaticText(_("Filter: ") + _("None")) self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(self.viewName[0]) for i in range(10): stars = "star" + str(i) self[stars] = Pixmap() if self[stars].instance is not None: self[stars].instance.hide() for i in range(10): stars = "nostar" + str(i) self[stars] = Pixmap() self.skinName = self.viewName[2] self.EXpicloadPoster.PictureData.get().append(self.DecodeActionPoster) self.EXpicloadBackdrop.PictureData.get().append( self.DecodeActionBackdrop)
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, myFilter=None, cache=None): printl("", self , "S") self.session = session DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, myFilter, cache) printl("", self, "C")
def __init__(self, viewClass, libraryName, loadLibraryFnc, viewParams): printl("", self , "S") DP_View.__init__(self, viewClass, libraryName, loadLibraryFnc, viewParams) self.setTitle(_("Mixed")) printl("", self, "C")
def __init__(self, viewClass, libraryName, loadLibraryFnc, viewParams): printl("", self , "S") DP_View.__init__(self, viewClass, libraryName, loadLibraryFnc, viewParams) self.setTitle(_("Music")) printl("", self, "C")
def __init__(self, viewClass, libraryName, loadLibraryFnc, viewParams): printl("", self , "S") DP_View.__init__(self, viewClass, libraryName, loadLibraryFnc, viewParams) self.setTitle(_("Shows")) self.playTheme = config.plugins.dreamplex.playTheme.value printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) self.mediaPath = config.plugins.dreamplex.mediafolderpath.value self.EXpicloadPoster = ePicLoad() self.EXpicloadBackdrop = ePicLoad() self.EXscale = (AVSwitch().getFramebufferScale()) self.whatPoster = None self.whatBackdrop = None self.parentSeasonId = None self.parentSeasonNr = None self.isTvShow = False self["poster"] = Pixmap() self["mybackdrop"] = Pixmap() self["title"] = Label() self["tag"] = Label() self["shortDescription"] = Label() self["genre"] = Label() self["year"] = Label() self["runtime"] = Label() self["total"] = Label() self["current"] = Label() self["quality"] = Label() self["sound"] = Label() self["key_red"] = StaticText(_("Sort: ") + _("Default")) self["key_green"] = StaticText(_("Filter: ") + _("None")) self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(self.viewName[0]) for i in range(10): stars = "star" + str(i) self[stars] = Pixmap() if self[stars].instance is not None: self[stars].instance.hide() for i in range(10): stars = "nostar" + str(i) self[stars] = Pixmap() self.skinName = self.viewName[2] self.EXpicloadPoster.PictureData.get().append(self.DecodeActionPoster) self.EXpicloadBackdrop.PictureData.get().append(self.DecodeActionBackdrop)
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): ''' ''' printl("", self, "S") DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) self.EXpicloadPoster3__ = ePicLoad() self.EXpicloadPoster2__ = ePicLoad() self.EXpicloadPoster1__ = ePicLoad() self.EXpicloadPoster_0_ = ePicLoad() self.EXpicloadPoster__1 = ePicLoad() self.EXpicloadPoster__2 = ePicLoad() self.EXpicloadPoster__3 = ePicLoad() self.EXscale = (AVSwitch().getFramebufferScale()) self["poster3__"] = Pixmap() self["poster2__"] = Pixmap() self["poster1__"] = Pixmap() self["poster_0_"] = Pixmap() self["poster__1"] = Pixmap() self["poster__2"] = Pixmap() self["poster__3"] = Pixmap() self["title"] = Label() self["shortDescriptionContainer"] = Label() self["shortDescription"] = Label() self["key_red"] = StaticText(_("Sort: ") + _("Default")) self["key_green"] = StaticText("") self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(self.viewName[0]) self.skinName = self.viewName[2] self.EXpicloadPoster3__.PictureData.get().append(self.DecodeActionPoster3__) self.EXpicloadPoster2__.PictureData.get().append(self.DecodeActionPoster2__) self.EXpicloadPoster1__.PictureData.get().append(self.DecodeActionPoster1__) self.EXpicloadPoster_0_.PictureData.get().append(self.DecodeActionPoster_0_) self.EXpicloadPoster__1.PictureData.get().append(self.DecodeActionPoster__1) self.EXpicloadPoster__2.PictureData.get().append(self.DecodeActionPoster__2) self.EXpicloadPoster__3.PictureData.get().append(self.DecodeActionPoster__3) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, myFilter=None, cache=None): printl("", self, "S") self.session = session DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, myFilter, cache) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): ''' ''' printl("", self, "S") self.session = session DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) # get needed config parameters self.mediaPath = config.plugins.dreamplex.mediafolderpath.value self.playTheme = config.plugins.dreamplex.playTheme.value self.fastScroll = config.plugins.dreamplex.fastScroll.value # get data from plex library self.image_prefix = Singleton().getPlexInstance().getServerName( ).lower() # init skin elements self["functionsContainer"] = Label() self["btn_red"] = Pixmap() self["btn_blue"] = Pixmap() self["btn_yellow"] = Pixmap() self["btn_zero"] = Pixmap() self["btn_nine"] = Pixmap() self["btn_pvr"] = Pixmap() self["btn_menu"] = Pixmap() self["txt_red"] = Label() self["txt_filter"] = Label() self["txt_blue"] = Label() self["txt_blue"].setText(_("toogle View ") + _("(current 'Default')")) self["txt_yellow"] = Label() if self.fastScroll == True: self["txt_yellow"].setText("fastScroll = On") else: self["txt_yellow"].setText("fastScroll = Off") self["txt_pvr"] = Label() self["txt_pvr"].setText("load additional data") self["txt_menu"] = Label() self["txt_menu"].setText("show media functions") self["poster"] = Pixmap() self["mybackdrop"] = Pixmap() self["audio"] = MultiPixmap() self["resolution"] = MultiPixmap() self["aspect"] = MultiPixmap() self["codec"] = MultiPixmap() self["rated"] = MultiPixmap() self["title"] = Label() self["tag"] = Label() self["shortDescription"] = ScrollLabel() self["genre"] = Label() self["year"] = Label() self["runtime"] = Label() self["total"] = Label() self["current"] = Label() self["backdroptext"] = Label() self["postertext"] = Label() self["rating_stars"] = ProgressBar() self.skinName = self.viewName[2] self.EXscale = (AVSwitch().getFramebufferScale()) self.EXpicloadPoster = ePicLoad() self.EXpicloadBackdrop = ePicLoad() self.onLayoutFinish.append(self.setPara) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): ''' ''' printl("", self , "S") self.session = session DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) # get needed config parameters self.mediaPath = config.plugins.dreamplex.mediafolderpath.value self.playTheme = config.plugins.dreamplex.playTheme.value self.fastScroll = config.plugins.dreamplex.fastScroll.value # get data from plex library self.image_prefix = Singleton().getPlexInstance().getServerName().lower() # init skin elements self["functionsContainer"] = Label() self["btn_red"] = Pixmap() self["btn_blue"] = Pixmap() self["btn_yellow"] = Pixmap() self["btn_zero"] = Pixmap() self["btn_nine"] = Pixmap() self["btn_pvr"] = Pixmap() self["btn_menu"] = Pixmap() self["txt_red"] = Label() self["txt_filter"] = Label() self["txt_blue"] = Label() self["txt_blue"].setText(_("toogle View ") + _("(current 'Default')")) self["txt_yellow"] = Label() if self.fastScroll == True: self["txt_yellow"].setText("fastScroll = On") else: self["txt_yellow"].setText("fastScroll = Off") self["txt_pvr"] = Label() self["txt_pvr"].setText("load additional data") self["txt_menu"] = Label() self["txt_menu"].setText("show media functions") self["poster"] = Pixmap() self["mybackdrop"] = Pixmap() self["audio"] = MultiPixmap() self["resolution"] = MultiPixmap() self["aspect"] = MultiPixmap() self["codec"] = MultiPixmap() self["rated"] = MultiPixmap() self["title"] = Label() self["tag"] = Label() self["shortDescription"] = ScrollLabel() self["genre"] = Label() self["year"] = Label() self["runtime"] = Label() self["total"] = Label() self["current"] = Label() self["backdroptext"] = Label() self["postertext"] = Label() self["rating_stars"] = ProgressBar() self.skinName = self.viewName[2] self.EXscale = (AVSwitch().getFramebufferScale()) self.EXpicloadPoster = ePicLoad() self.EXpicloadBackdrop = ePicLoad() self.onLayoutFinish.append(self.setPara) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): ''' ''' printl("", self, "S") DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) self.EXpicloadPoster3__ = ePicLoad() self.EXpicloadPoster2__ = ePicLoad() self.EXpicloadPoster1__ = ePicLoad() self.EXpicloadPoster_0_ = ePicLoad() self.EXpicloadPoster__1 = ePicLoad() self.EXpicloadPoster__2 = ePicLoad() self.EXpicloadPoster__3 = ePicLoad() self.EXscale = (AVSwitch().getFramebufferScale()) self["poster3__"] = Pixmap() self["poster2__"] = Pixmap() self["poster1__"] = Pixmap() self["poster_0_"] = Pixmap() self["poster__1"] = Pixmap() self["poster__2"] = Pixmap() self["poster__3"] = Pixmap() self["title"] = Label() self["shortDescriptionContainer"] = Label() self["shortDescription"] = Label() self["key_red"] = StaticText(_("Sort: ") + _("Default")) self["key_green"] = StaticText("") self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(self.viewName[0]) self.skinName = self.viewName[2] self.EXpicloadPoster3__.PictureData.get().append( self.DecodeActionPoster3__) self.EXpicloadPoster2__.PictureData.get().append( self.DecodeActionPoster2__) self.EXpicloadPoster1__.PictureData.get().append( self.DecodeActionPoster1__) self.EXpicloadPoster_0_.PictureData.get().append( self.DecodeActionPoster_0_) self.EXpicloadPoster__1.PictureData.get().append( self.DecodeActionPoster__1) self.EXpicloadPoster__2.PictureData.get().append( self.DecodeActionPoster__2) self.EXpicloadPoster__3.PictureData.get().append( self.DecodeActionPoster__3) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): ''' ''' printl("", self, "S") DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) instance = Singleton() plexInstance = instance.getPlexInstance() self.image_prefix = plexInstance.getServerName().lower() self.postersLeft = {} self.whatPoster_0_ = None self.postersRight = {} self.parentSeasonId = None self.parentSeasonNr = None self.isTvShow = False self.EXpicloadPoster_m3 = ePicLoad() self.EXpicloadPoster_m2 = ePicLoad() self.EXpicloadPoster_m1 = ePicLoad() self.EXpicloadPoster_0_ = ePicLoad() self.EXpicloadPoster_p1 = ePicLoad() self.EXpicloadPoster_p2 = ePicLoad() self.EXpicloadPoster_p3 = ePicLoad() self.EXscale = (AVSwitch().getFramebufferScale()) self["poster_m3"] = Pixmap() self["poster_m2"] = Pixmap() self["poster_m1"] = Pixmap() self["poster_0_"] = Pixmap() self["poster_p1"] = Pixmap() self["poster_p2"] = Pixmap() self["poster_p3"] = Pixmap() self["seen_m3"] = Pixmap() self["seen_m2"] = Pixmap() self["seen_m1"] = Pixmap() self["seen_0_"] = Pixmap() self["seen_p1"] = Pixmap() self["seen_p2"] = Pixmap() self["seen_p3"] = Pixmap() self["title"] = Label() self["shortDescriptionContainer"] = Label() self["shortDescription"] = Label() self["key_red"] = StaticText(_("Sort: ") + _("Default")) self["key_green"] = StaticText("") self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(self.viewName[0]) self.skinName = self.viewName[2] self.EXpicloadPoster_m3.PictureData.get().append(self.DecodeActionPoster_m3) self.EXpicloadPoster_m2.PictureData.get().append(self.DecodeActionPoster_m2) self.EXpicloadPoster_m1.PictureData.get().append(self.DecodeActionPoster_m1) self.EXpicloadPoster_0_.PictureData.get().append(self.DecodeActionPoster_0_) self.EXpicloadPoster_p1.PictureData.get().append(self.DecodeActionPoster_p1) self.EXpicloadPoster_p2.PictureData.get().append(self.DecodeActionPoster_p2) self.EXpicloadPoster_p3.PictureData.get().append(self.DecodeActionPoster_p3) self.onLayoutFinish.append(self.setPara) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None, cache=None): printl("", self , "S") self.session = session printl("myParams: " + str(viewName[3]), self, "D") printl("libraryName: " + str(libraryName), self, "D") self.myParams = viewName[3] DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter, cache) printl("cache: " + str(cache), self, "D") # set navigation values #DP_View.setListViewElementsCount("DPS_ViewList") # set image names to use self.poster_postfix = self.myParams["poster_postfix"] self.backdrop_postfix = self.myParams["backdrop_postfix"] # get needed config parameters self.mediaPath = config.plugins.dreamplex.mediafolderpath.value self.playTheme = config.plugins.dreamplex.playTheme.value self.fastScroll = config.plugins.dreamplex.fastScroll.value # get data from plex library self.image_prefix = Singleton().getPlexInstance().getServerName().lower() # init skin elements self["functionsContainer"] = Label() self["btn_red"] = Pixmap() self["btn_blue"] = Pixmap() self["btn_yellow"] = Pixmap() self["btn_zero"] = Pixmap() self["btn_nine"] = Pixmap() self["btn_pvr"] = Pixmap() self["btn_menu"] = Pixmap() self["txt_red"] = Label() self["txt_filter"] = Label() self["txt_yellow"] = Label() self["txt_blue"] = Label() self["txt_blue"].setText(_("toogle View ") + _("(current 'Default')")) if self.fastScroll: self["txt_yellow"].setText("fastScroll = On") else: self["txt_yellow"].setText("fastScroll = Off") self["txt_pvr"] = Label() self["txt_pvr"].setText("load additional data") self["txt_menu"] = Label() self["txt_menu"].setText("show media functions") if self.myParams["showPoster"]: self["poster"] = Pixmap() self.posterHeight = self.myParams["posterHeight"] self.posterWidth = self.myParams["posterWidth"] if self.myParams["showBackdrop"]: self["mybackdrop"] = Pixmap() self.backdropHeight = self.myParams["backdropHeight"] self.backdropWidth = self.myParams["backdropWidth"] if self.myParams["audio"]: self["audio"] = MultiPixmap() if self.myParams["resolution"]: self["resolution"] = MultiPixmap() if self.myParams["aspect"]: self["aspect"] = MultiPixmap() if self.myParams["codec"]: self["codec"] = MultiPixmap() if self.myParams["rated"]: self["rated"] = MultiPixmap() if self.myParams["title"]: self["title"] = Label() if self.myParams["tag"]: self["tag"] = Label() if self.myParams["shortDescription"]: self["shortDescription"] = ScrollLabel() if self.myParams["subtitles"]: self["subtitles"] = Label() if self.myParams["selectedAudio"]: self["selectedAudio"] = Label() if self.myParams["genre"]: self["genre"] = Label() if self.myParams["year"]: self["year"] = Label() if self.myParams["runtime"]: self["runtime"] = Label() if self.myParams["total"]: self["total"] = Label() if self.myParams["current"]: self["current"] = Label() if self.myParams["backdroptext"]: self["backdroptext"] = Label() if self.myParams["postertext"]: self["postertext"] = Label() if self.myParams["rating_stars"]: self["rating_stars"] = ProgressBar() printl("skinName: " + str(self.skinName), self, "C") self.skinName = self.myParams["screen"] if self.myParams["showPoster"] == True or self.myParams["showBackdrop"] == True: self.EXscale = (AVSwitch().getFramebufferScale()) if self.myParams["showPoster"]: self.EXpicloadPoster = ePicLoad() if self.myParams["showBackdrop"]: self.EXpicloadBackdrop = ePicLoad() self.onLayoutFinish.append(self.setPara) printl("", self, "C")
def __init__(self, session, libraryName, loadLibrary, playEntry, viewName, select=None, sort=None, filter=None): ''' ''' printl("", self, "S") DP_View.__init__(self, session, libraryName, loadLibrary, playEntry, viewName, select, sort, filter) instance = Singleton() plexInstance = instance.getPlexInstance() self.image_prefix = plexInstance.getServerName().lower() self.posters = {} self.parentSeasonId = None self.parentSeasonNr = None self.isTvShow = False self.EXpicloadPoster_P0 = ePicLoad() self.EXpicloadPoster_P1 = ePicLoad() self.EXpicloadPoster_P2 = ePicLoad() self.EXpicloadPoster_P3 = ePicLoad() self.EXpicloadPoster_P4 = ePicLoad() self.EXpicloadPoster_P5 = ePicLoad() self.EXscale = (AVSwitch().getFramebufferScale()) self["poster_0"] = Pixmap() self["poster_1"] = Pixmap() self["poster_2"] = Pixmap() self["poster_3"] = Pixmap() self["poster_4"] = Pixmap() self["poster_5"] = Pixmap() self["seen_0"] = Pixmap() self["seen_1"] = Pixmap() self["seen_2"] = Pixmap() self["seen_3"] = Pixmap() self["seen_4"] = Pixmap() self["seen_5"] = Pixmap() self["title"] = Label() self["shortDescriptionContainer"] = Label() self["shortDescription"] = Label() self["key_red"] = StaticText(_("Sort: ") + _("Default")) self["key_green"] = StaticText("") self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(self.viewName[0]) self.skinName = self.viewName[2] self.EXpicloadPoster_P0.PictureData.get().append(self.DecodeActionPoster_P0) self.EXpicloadPoster_P1.PictureData.get().append(self.DecodeActionPoster_P1) self.EXpicloadPoster_P2.PictureData.get().append(self.DecodeActionPoster_P2) self.EXpicloadPoster_P3.PictureData.get().append(self.DecodeActionPoster_P3) self.EXpicloadPoster_P4.PictureData.get().append(self.DecodeActionPoster_P4) self.EXpicloadPoster_P5.PictureData.get().append(self.DecodeActionPoster_P5) self.onLayoutFinish.append(self.setPara) self.loadNext = True printl("", self, "C")