From b3c5e2238c75760c60ba568d992031c61b14a2b9 Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 4 Oct 2024 20:11:03 -0400 Subject: prepare read and move detail route to anime --- middleware/globalmetamiddleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3