def getItem(self, url, action): return ListItem( self.title, buildUrl(url, action=action, categoryID=self.backendID), isFolder=True, infos={"video": { "title": self.title, "plot": self.plot }}, poster=self.thumbnail, thumb=self.thumbnail)
def getItem(self, url, action): return ListItem( self.displayname, buildUrl(url, action=action, username=self.username), isFolder=True, infos={"video": { "title": self.displayname, "plot": self.plot }}, poster=self.thumbnail, thumb=self.thumbnail)
def getItem(self, url, action): return ListItem( self.title, buildUrl(url, action=action, playlistId=self.playlistId), isFolder=True, infos={"video": { "title": self.title, "plot": self.plot }}, poster=self.thumbnail, thumb=self.thumbnail)
def __makeItem__(label, url, art=None, isFolder=True, **kwargs): label = localizedString(label) return ListItem( label, buildUrl(url, **kwargs), isFolder=isFolder, isPlayable=False, infos={"video": {"title": label, "plot": label}}, poster=art, icon=art )
def getItem(self, url): return ListItem( self.text, buildUrl(url, action="search", query=self.query, text=self.text), isFolder=True, infos={"video": { "title": self.text, "plot": self.text }}, contextMenus=self.menus(query=self.query, text=self.text), poster="DefaultAddonsSearch.png", thumb="DefaultAddonsSearch.png")
def getItem(self, url, action): return ListItem( self.author, buildUrl(url, action=action, authorId=self.authorId), isFolder=True, infos={"video": { "title": self.author, "plot": self.plot }}, contextMenus=self.menus(authorId=self.authorId, author=self.author), poster=self.thumbnail, thumb=self.thumbnail)
def getItem(self, url, **kwargs): folder = __schema__[self.type][self.style] label = maybeLocalize(folder["label"]) kwargs = dict(dict(folder.get("kwargs", {}), **self.kwargs), **kwargs) return ListItem(label, buildUrl(url, action=folder.get("action", self.type), **kwargs), isFolder=True, infos={ "video": { "title": label, "plot": maybeLocalize(folder.get("plot", label)) } }, **folder.get("art", {}))
def getItem(self, url): return ListItem( self.query, buildUrl(url, action="search", type=self.type, query=self.query, sort_by=self.sort_by), isFolder=True, infos={"video": { "title": self.query, "plot": self.query }}, contextMenus=self.menus(type=self.type, query=self.query, sort_by=self.sort_by), poster="DefaultAddonsSearch.png")
def getItem(self, url, action): return self.makeItem( buildUrl(url, action=action, username=self.creator.username))
def getItem(self, url, action): return self.makeItem(buildUrl(url, action=action, videoId=self.videoId))