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"})
Пример #3
0
 def route_list(plugin):
     plugin.add_sort_methods(SORT_DATE)
     yield Listitem.from_dict("http://season one", "test.mkv", info={"genre": "test"})
Пример #4
0
 def route_list(plugin):
     plugin.autosort = False
     yield Listitem.from_dict("http://season one", "test.mkv", info={"genre": "test"})
Пример #5
0
 def route_list(_):
     item = Listitem.from_dict("http://season one", "test.mkv")
     item.info.date("june 27, 2017", "%B %d, %Y")
     yield item
Пример #6
0
 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")
Пример #15
0
 def route_list(_):
     return [Listitem.from_dict(callback_test, "test item")]
Пример #16
0
 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 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():
     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():
     yield Listitem.from_dict("season one", "test.mkv", info={"genre": "test"})
 def route_list():
     yield Listitem.from_dict("season one", "test.mkv")
 def route_list(plugin):
     plugin.autosort = False
     yield Listitem.from_dict("season one", "test.mkv")
Пример #24
0
 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"})
Пример #26
0
 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"})
Пример #28
0
 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"})
Пример #30
0
 def route_gen(_):
     yield Listitem.from_dict(callback_test, "test item")
 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
Пример #32
0
 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"])
 def results(_, search_query):
     self.assertEqual(search_query, "Rock")
     yield Listitem.from_dict(results, "listitem one")
     yield Listitem.from_dict(results, "listitem two")
 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")