diff options
| author | Bobby <[email protected]> | 2024-09-25 06:52:25 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-09-25 06:52:25 -0400 |
| commit | 5e88073be08c9d3e795fcea0d17cd2cfa276ea41 (patch) | |
| tree | a09ff84585cdcfbe14b0fddf6aaa1df5d99f475c | |
| parent | 6084e733c6e03938d2f14e8908274bd88674f5c7 (diff) | |
| download | yugen-5e88073be08c9d3e795fcea0d17cd2cfa276ea41.tar.xz yugen-5e88073be08c9d3e795fcea0d17cd2cfa276ea41.zip | |
MAL Sync in Gogo
| -rw-r--r-- | watch/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/watch/views.py b/watch/views.py index 44ffb35..ea74097 100644 --- a/watch/views.py +++ b/watch/views.py @@ -461,7 +461,9 @@ def watch(request, anime_id, episode=None): "should_preload": should_preload, } - mal_id_present = anime.malId or anime_fetched.get("malId") + mal_id_present = anime_fetched.get("malId") + if anime and anime.malId and not mal_id_present: + mal_id_present = True if request.user.mal_access_token and mal_id_present: context["mal_data"] = mal_data |
