aboutsummaryrefslogtreecommitdiff
path: root/detail
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-10-04 17:19:54 -0400
committerBobby <[email protected]>2024-10-04 17:19:54 -0400
commit17149c90290d80fc9b0b1b74a2777369e2da7c18 (patch)
tree6b2cdf543f96500d076a6d5de46b2d4bcbd04263 /detail
parent4e801314b76ebc1556ab37fa8d7f0897c6e238ed (diff)
downloadyugen-17149c90290d80fc9b0b1b74a2777369e2da7c18.tar.xz
yugen-17149c90290d80fc9b0b1b74a2777369e2da7c18.zip
Added global meta middleware
Diffstat (limited to 'detail')
-rw-r--r--detail/views.py44
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)