def __init__(self): self.trakt = TraktAPI() self.movies_database = movies.TraktSyncDatabase() self.list_builder = ListBuilder() self.page_limit = g.get_int_setting("item.limit") self.page_start = (g.PAGE-1)*self.page_limit self.page_end = g.PAGE*self.page_limit
def __init__(self): self.trakt = TraktAPI() self.language_code = g.get_language_code() self.trakt_database = TraktSyncDatabase() self.hidden_database = hidden.TraktSyncDatabase() self.bookmark_database = bookmark.TraktSyncDatabase() self.shows_database = shows.TraktSyncDatabase() self.list_builder = ListBuilder() self.page_limit = g.get_int_setting("item.limit")
def __init__(self, item_information): self.list_builder = ListBuilder() if "info" not in item_information: item_information = tools.get_item_information(item_information) self.item_information = item_information if not isinstance(self.item_information, dict): raise TypeError("Item Information is not a dictionary") self.show_trakt_id = self.item_information.get("trakt_show_id") if not self.show_trakt_id and "action_args" in self.item_information: self.show_trakt_id = self._extract_show_id_from_args( self.item_information["action_args"]) self.display_style = g.get_int_setting("smartplay.displaystyle") self.trakt_api = TraktAPI()
def list_builder(self): from resources.lib.modules.list_builder import ListBuilder return ListBuilder()
def __init__(self): self.title_appends = g.get_setting('general.appendListTitles') self.lists_database = lists.TraktSyncDatabase() self.builder = ListBuilder() self.no_paging = not g.get_bool_setting('general.paginatetraktlists')