From c66509d191acbfa4e5ecee033e5f3c624f156b56 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 25 Sep 2024 06:55:38 -0400 Subject: MAL Sync in Gogo --- watch/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/watch/views.py b/watch/views.py index ea74097..f8282dd 100644 --- a/watch/views.py +++ b/watch/views.py @@ -462,8 +462,9 @@ def watch(request, anime_id, episode=None): } mal_id_present = anime_fetched.get("malId") - if anime and anime.malId and not mal_id_present: - mal_id_present = True + if isinstance(anime, Anime): + if not mal_id_present and anime.malId: + mal_id_present = True if request.user.mal_access_token and mal_id_present: context["mal_data"] = mal_data -- cgit v1.2.3