def route_list(plugin): plugin.add_sort_methods(SORT_DATE) yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"}) item = Listitem.from_dict("season one", "test.mkv") item.info.date("june 27, 2017", "%B %d, %Y") yield item
def route_list(): yield Listitem.from_dict(callback_test, "test item one", info={"mediatype": "video"}) yield Listitem.from_dict(callback_test, "test item two", info={"mediatype": "movie"}) yield Listitem.from_dict(callback_test, "test item three", info={"mediatype": "video"})
def route_list(plugin): plugin.add_sort_methods(SORT_DATE) yield Listitem.from_dict("http://season one", "test.mkv", info={"genre": "test"})
def route_list(plugin): plugin.autosort = False yield Listitem.from_dict("http://season one", "test.mkv", info={"genre": "test"})
def route_list(_): item = Listitem.from_dict("http://season one", "test.mkv") item.info.date("june 27, 2017", "%B %d, %Y") yield item
def route_list(_): yield Listitem.from_dict(callback_test, "season one")
def route_list(): yield Listitem.from_dict(callback_test, "season one", info={"mediatype": "season"})
def route_list(): yield Listitem.from_dict(callback_test, "test item", info={"mediatype": "video"})
def session_two(_, search_query): self.assertEqual(search_query, "Pop") yield Listitem.from_dict(session_two, "listitem one") yield Listitem.from_dict(session_two, "listitem two")
def route_list(): yield Listitem.from_dict(callback_test, "test item")
def route_list(plugin): plugin.autosort = False plugin.add_sort_methods(3) yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"})
def route_list(plugin): plugin.autosort = False yield Listitem.from_dict("season one", "test.mkv")
def route_list(): yield Listitem.from_dict("season one", "test.mkv")
def results(_, search_query): self.assertEqual(search_query, "Rock") yield Listitem.from_dict(results, "listitem one") yield Listitem.from_dict(results, "listitem two")
def route_list(_): return [Listitem.from_dict(callback_test, "test item")]
def route_list(_): yield Listitem.from_dict(callback_test, "season one", info={"mediatype": "season"})
def test_list(self): self.route._process_results( [Listitem.from_dict(callback_test, "test item")]) self.assertTrue(plugin_data["succeeded"])
def route_list(): item = Listitem.from_dict("season one", "test.mkv") item.info.date("june 27, 2017", "%B %d, %Y") yield item
def route_list(): yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"})
def route_list(_): yield Listitem.from_dict("http://season one", "test.mkv")
def route_list(plugin): plugin.autosort = False yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"})
def route_list(_): yield Listitem.from_dict("http://season one", "test.mkv", info={"genre": "test"})
def route_list(plugin): plugin.add_sort_methods(3, disable_autosort=True) yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"})
def route_list(plugin): plugin.add_sort_methods(3, disable_autosort=True) yield Listitem.from_dict("http://season one", "test.mkv", info={"genre": "test"})
def route_list(plugin): plugin.add_sort_methods(SORT_DATE) yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"})
def route_gen(_): yield Listitem.from_dict(callback_test, "test item")
def route_list(_): yield Listitem.from_dict(callback_test, "test item", info={"mediatype": "video"})
def route_gen(): yield Listitem.from_dict(callback_test, "test item")
def session_one(_, search_query): self.assertEqual(search_query, "Rock") yield Listitem.from_dict(session_one, "listitem one") yield Listitem.from_dict(session_one, "listitem two")
def test_list(self): self.route._process_results([Listitem.from_dict(callback_test, "test item")]) self.assertTrue(plugin_data["succeeded"])