Link watchlist titles to providers

This commit is contained in:
Codex
2026-08-09 14:08:17 +02:00
parent 4eb5252d3a
commit 3078900087
5 changed files with 51 additions and 9 deletions
+21
View File
@@ -1642,6 +1642,27 @@ class WatchlistCompletionTests(unittest.TestCase):
self.assertEqual(item["provider"], "pahe")
self.assertEqual(item["provider_label"], "AnimePahe")
def test_watchlist_source_url_uses_anikoto_show_page(self):
self.seed_watchlist_item(show_id="anikoto:provider-show", title="Provider Show", provider="anikoto")
item = APP.WATCHLIST.get("anikoto:provider-show")
self.assertEqual(item["source_url"], "https://anikototv.to/watch/provider-show")
def test_watchlist_source_url_uses_anineko_show_page(self):
self.seed_watchlist_item(show_id="anineko:provider-show", title="Provider Show", provider="anineko")
item = APP.WATCHLIST.get("anineko:provider-show")
self.assertEqual(item["source_url"], "https://anineko.to/watch/provider-show")
def test_watchlist_source_url_uses_animepahe_show_page(self):
self.seed_watchlist_item(show_id="pahe:provider-show", title="Provider Show", provider="pahe")
item = APP.WATCHLIST.get("pahe:provider-show")
self.assertEqual(item["source_url"], "https://animepahe.pw/anime/provider-show")
def test_refresh_persists_expected_episode_total_and_ready_flags(self):
self.seed_watchlist_item()