diff options
Diffstat (limited to 'detail/views.py')
| -rw-r--r-- | detail/views.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/detail/views.py b/detail/views.py index d25c3bf..5e89355 100644 --- a/detail/views.py +++ b/detail/views.py @@ -36,47 +36,3 @@ def detail(request, anime_id): context["nextAiringEpisode"] = anime_data["nextAiringEpisode"] return render(request, "detail/detail.html", context) - - - # zid support is dropped - - - - # anime_data, provider, gd = get_anime_data(anime_id) - # if not anime_data: - # return render(request, "detail/detail.html", {"error": "Anime not found"}, status=404) - - # anime_episodes = get_anime_episodes(anime_id) - # if "message" in anime_episodes: - # anime_data, provider, gd = get_anime_data(anime_id, provider="gogo") - # anime_episodes, _ = get_anime_episodes_gogo(anime_id) - - # if anime_episodes: - # attach_episode_metadata(anime_data, anime_episodes) - - # if request.user.mal_access_token and anime_data.get("malId"): - # mal_data = get_single_anime_mal(request.user.mal_access_token, anime_data["malId"]) - # else: - # mal_data = None - - # context = { - # "anime": anime_data, - # "episodes": anime_episodes, - # "related": anime_data.get("relations", []), - # "recommendations": anime_data.get("recommendations", []), - # } - - # zid = anime_data["episodes"][0]["id"].split("$")[0] if len(anime_data["episodes"]) > 0 else None - # if zid and provider == "zoro": - # seasons = get_seasons_by_zid(zid) - # if seasons: - # context["seasons"] = seasons - - # if "nextAiringEpisode" in anime_data: - # context["nextAiringEpisode"] = anime_data["nextAiringEpisode"] - - # if mal_data: - # context["mal_data"] = mal_data - # context["mal_episode_range"] = range(1, mal_data["num_episodes"] + 1) - - # return render(request, "detail/detail.html", context) |
