aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-10-04 20:11:03 -0400
committerBobby <[email protected]>2024-10-04 20:11:03 -0400
commitb3c5e2238c75760c60ba568d992031c61b14a2b9 (patch)
treeaff4ccf3f970ed3211acc92937a06e3fd646ffd5
parent8d62522b9663eaf02c9ccb9f48cac4b79bbd39b1 (diff)
downloadyugen-b3c5e2238c75760c60ba568d992031c61b14a2b9.tar.xz
yugen-b3c5e2238c75760c60ba568d992031c61b14a2b9.zip
prepare read and move detail route to anime
-rw-r--r--middleware/globalmetamiddleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/globalmetamiddleware.py b/middleware/globalmetamiddleware.py
index 8f598c8..7329833 100644
--- a/middleware/globalmetamiddleware.py
+++ b/middleware/globalmetamiddleware.py
@@ -51,7 +51,7 @@ class GlobalMetaMiddleware:
request.meta["title"] = "Profile | Yugen"
request.meta["description"] = "Explore your profile on Yugen. Stream and watch the latest anime episodes. Read manga and discover the most popular anime."
- if '/detail/' in full_path:
+ if '/anime/' in full_path:
requested_id = request.path.split("/")[2]
anime_info = get_anime_data(requested_id)
title, description = self.get_anime_title_description(anime_info)