Skip to content
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

Bug: "genre_in" requires type String #382

Closed
danqbudz opened this issue Sep 7, 2021 · 2 comments · Fixed by #392
Closed

Bug: "genre_in" requires type String #382

danqbudz opened this issue Sep 7, 2021 · 2 comments · Fixed by #392
Assignees
Labels
bug Bug is with Plex Meta Manager status:added-to-develop Feature Request or Bug Fix is in Develop

Comments

@danqbudz
Copy link

danqbudz commented Sep 7, 2021

Describe the Bug
genre_in entries in anilist_search query are unquoted.

Relevant Collection Config

anilist_search:
  genre: Action
  limit: 100
  format: movie
  sort_by: popular

Plex Meta Manager Info

  • 1.12.1

Logs

[DEBUG]    | Processing AniList Search:                                                                         |
           |     Sort By Popularity
           |     Limit to 100 Anime
           |     Genre is ['Action']
           |     Format is ['movie']
[DEBUG]    | query ($page: Int) {Page(page: $page){pageInfo {hasNextPage}media(sort: POPULARITY_DESC, type: ANIME, genre_in: [Action], format_in: [MOVIE]){id}}}
[DEBUG]    | Traceback (most recent call last):
           |   File "//plex_meta_manager.py", line 491, in run_collection
           |     builder.find_rating_keys()
           |   File "/modules/builder.py", line 1074, in find_rating_keys
           |     anilist_ids = self.config.AniList.get_anilist_ids(method, value)
           |   File "/modules/anilist.py", line 251, in get_anilist_ids
           |     anilist_ids = self._search(**data)
           |   File "/modules/anilist.py", line 133, in _search
           |     return self._pagenation(query, limit=kwargs["limit"], variables=variables)
           |   File "/modules/anilist.py", line 96, in _pagenation
           |     json_obj = self._request(query, variables)
           |   File "/modules/anilist.py", line 74, in _request
           |     raise Failed(f"AniList Error: {json_obj['errors'][0]['message']}")
           | modules.util.Failed: AniList Error: Field "media" argument "genre_in" requires type String, found Action.
           | 
[ERROR]    | AniList Error: Field "media" argument "genre_in" requires type String, found Action.
@danqbudz danqbudz added bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Sep 7, 2021
@cpt-kuesel
Copy link
Contributor

@meisnate12 meisnate12 added status:working Working on this bug or feature priority:high High priority bug or feature and removed status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Sep 9, 2021
meisnate12 added a commit that referenced this issue Sep 13, 2021
@meisnate12
Copy link
Member

fix is in develop

@meisnate12 meisnate12 added status:added-to-develop Feature Request or Bug Fix is in Develop and removed priority:high High priority bug or feature status:working Working on this bug or feature labels Sep 13, 2021
@meisnate12 meisnate12 mentioned this issue Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug is with Plex Meta Manager status:added-to-develop Feature Request or Bug Fix is in Develop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants