aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-09-25 06:55:38 -0400
committerBobby <[email protected]>2024-09-25 06:55:38 -0400
commitc66509d191acbfa4e5ecee033e5f3c624f156b56 (patch)
treeff598b171eb4382fbef03a0144fc7dc4dca227fb
parent5e88073be08c9d3e795fcea0d17cd2cfa276ea41 (diff)
downloadyugen-c66509d191acbfa4e5ecee033e5f3c624f156b56.tar.xz
yugen-c66509d191acbfa4e5ecee033e5f3c624f156b56.zip
MAL Sync in Gogo
-rw-r--r--watch/views.py5
1 files 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