-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Anilist] free variable 'default' referenced before assignment in enclosing scope #118
Labels
bug
Bug is with Plex Meta Manager
Comments
ok there should be a fix in develop. can you test? |
| Method: anilist_season |
| Value: ordereddict([('season', 'fall'), ('year', 2020)]) |
| Collection Warning: anilist_season sort_by attribute not found using score as default |
| Collection Warning: anilist_season limit attribute not found using 0 as default |
| |
| Method: sync_mode |
| Value: sync |
| |
| Sync Mode: sync |
| |
| Method: anilist_season |
| Values: [{'sort_by': 'score', 'season': 'fall', 'year': 2020, 'limit': 0}] |
| |
| Value: {'sort_by': 'score', 'season': 'fall', 'year': 2020, 'limit': 0} |
| Data: {'sort_by': 'score', 'season': 'fall', 'year': 2020, 'limit': 0} |
| Traceback (most recent call last): |
| File "/root/Plex-Meta-Manager/modules/config.py", line 462, in update_libraries |
| builder.run_methods(collection_obj, collection_name, rating_key_map, movie_map, show_map) |
| File "/root/Plex-Meta-Manager/modules/builder.py", line 748, in run_methods |
| elif "anilist" in method: items_found += check_map(self.config.AniList.get_items(method, value)) |
| File "/root/Plex-Meta-Manager/modules/anilist.py", line 185, in get_items |
| mal_ids = self.season(data["season"], data["year"], data["sort_by"], data["limit"]) |
| File "/root/Plex-Meta-Manager/modules/anilist.py", line 95, in season |
| return self.get_pagenation(query, limit=limit, variables=variables) |
| File "/root/Plex-Meta-Manager/modules/anilist.py", line 50, in get_pagenation |
| json_obj = self.send_request(query, variables) |
| File "/usr/local/lib/python3.6/dist-packages/retrying.py", line 49, in wrapped_f |
| return Retrying(*dargs, **dkw).call(f, *args, **kw) |
| File "/usr/local/lib/python3.6/dist-packages/retrying.py", line 206, in call |
| return attempt.get(self._wrap_exception) |
| File "/usr/local/lib/python3.6/dist-packages/retrying.py", line 247, in get |
| six.reraise(self.value[0], self.value[1], self.value[2]) |
| File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise |
| raise value |
| File "/usr/local/lib/python3.6/dist-packages/retrying.py", line 200, in call |
| attempt = Attempt(fn(*args, **kwargs), attempt_number, False) |
| File "/root/Plex-Meta-Manager/modules/anilist.py", line 27, in send_request |
| raise Failed(f"AniList Error: {json_obj['errors'][0]['message']}") |
| modules.util.Failed: AniList Error: Variable "$season" of type "String" used in position expecting type "MediaSeason". |
| |
| Unknown Error: AniList Error: Variable "$season" of type "String" used in position expecting type "MediaSeason". | |
and boom can you update and try again i think i got it this time |
Fixed, thanks! 👍 |
awesome I'm leaving this open until the fix is in master |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! When i set a collection with
AniList Seasonal Anime
(https://github.com/meisnate12/Plex-Meta-Manager/wiki/AniList-Builders#anilist-seasonal-anime) like this:Logs:
But it works very well with studios for example.
The text was updated successfully, but these errors were encountered: