def list_episodes(self, title, season_number, url): html = dreamfilm.fetch_html(url) seasons = dreamfilm.scrap_serie(html) for idx, e in enumerate(seasons[season_number]): self.add_episode_list_item(title, season_number, idx, e) self.xbmcplugin.endOfDirectory(self.handle)
def list_seasons(self, title, url): html = dreamfilm.fetch_html(url) seasons = dreamfilm.scrap_serie(html) for idx, s in enumerate(seasons): self.add_season_list_item(title, idx, url) self.xbmcplugin.endOfDirectory(self.handle)