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

Genre/year using plex_search not working with TV Shows #27

Closed
rbehal opened this issue Feb 13, 2021 · 4 comments · Fixed by #138
Closed

Genre/year using plex_search not working with TV Shows #27

rbehal opened this issue Feb 13, 2021 · 4 comments · Fixed by #138
Assignees
Labels
bug Bug is with Plex Meta Manager

Comments

@rbehal
Copy link

rbehal commented Feb 13, 2021

Applied a few plex_search collections for my TV shows library and they turned out empty even though I definitely have TV shows with these genres. Very strange, because it worked perfectly with my Movies Library, and I was also able to get other collections working with my TV Shows library (Star Wars from TVDB List).

This is the plex_search portion of my current setup in TV Shows.yml:

collections:
  Animated TV Shows:
    plex_search:
      genre: Animation
    sort_title: ++_Animated TV Shows
    sync_mode: sync
    collection_order: alpha          
  Comedy TV Shows:
    plex_search:
      genre: Comedy
    sort_title: ++++_Comedy TV Shows
    sync_mode: sync
    collection_order: alpha
  Drama TV Shows:
    plex_search:
      genre: Drama  
    sort_title: ++_Drama TV Shows
    sync_mode: sync
    collection_order: alpha

It seems to be working perfectly fine with movies, with almost an identical setup. Added this after line 904 in config.py to see if I could debug a bit more

items = library.Plex.search(**search_terms)
items_found += len(items)
print("[DEBUG]: \n", library.Plex.search(genre=["Comedy"]))

and I was able to get a list for the Movies without an issue. However, with the TV shows it results in an "Unknown filter" error for both genre and year. Might be an issue on the end of PlexAPI or I could be doing something wrong here as well.

@rbehal rbehal changed the title Genre/year plex_search not working with TV Shows Genre/year using plex_search not working with TV Shows Feb 13, 2021
@doctarrwho
Copy link

I have the same issue, and it does appear to be an issue with PlexAPI. I was able to workaround this by using the following config instead for the TV Library. It appears to be slower vs a plex_search, but at least it works.

    '* Comedy':
        sort_title: "* Comedy"
        sync_mode: sync
        plex_all: true
        filters:
            genre: Comedy

@meisnate12
Copy link
Member

meisnate12 commented Feb 14, 2021

yea this pull request will fix the errors so once it goes to the main release this will get fixed pkkid/python-plexapi#598

@meisnate12 meisnate12 self-assigned this Feb 14, 2021
@meisnate12 meisnate12 added the bug Bug is with Plex Meta Manager label Feb 14, 2021
@rbehal
Copy link
Author

rbehal commented Feb 15, 2021

Perfect, makes sense, thank you! Might be nice to edit the WIki too for now. I would do it, but AFAIK Github doesn't support PRs for the Wiki stuff.

@meisnate12
Copy link
Member

follow this PR for updates pkkid/python-plexapi#693

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants