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

Possible issue with New Plex Scanner and PlexAPI? #2

Closed
josephmoyer opened this issue Apr 11, 2021 · 5 comments
Closed

Possible issue with New Plex Scanner and PlexAPI? #2

josephmoyer opened this issue Apr 11, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@josephmoyer
Copy link

josephmoyer commented Apr 11, 2021

Tried to run it, but got an error that from my googling of stuff when trying to play around with the PlexAPI, seems to be down for everyone.

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/joe/plex2letterboxd/plex2letterboxd/__main__.py", line 4, in <module>
    plex2letterboxd.main()
  File "/home/joe/plex2letterboxd/plex2letterboxd/plex2letterboxd.py", line 61, in main
    write_csv(sections, args.output)
  File "/home/joe/plex2letterboxd/plex2letterboxd/plex2letterboxd.py", line 44, in write_csv
    for movie in section.search(sort='lastViewedAt', unwatched=False):
  File "/home/joe/.local/lib/python3.8/site-packages/plexapi/library.py", line 669, in search
    args[category] = self._cleanSearchFilter(category, value, libtype)
  File "/home/joe/.local/lib/python3.8/site-packages/plexapi/library.py", line 717, in _cleanSearchFilter
    raise BadRequest('Unknown filter category: %s' % category)
plexapi.exceptions.BadRequest: Unknown filter category: unwatched

Like I'm pretty sure that filter category should be there, but my Movie library is using the newer scanner, so I think it's not gonna work.

@mtimkovich mtimkovich added the bug Something isn't working label Apr 11, 2021
@mtimkovich
Copy link
Owner

Thanks for the stack trace, I'll look into it.

@mtimkovich
Copy link
Owner

mtimkovich commented Apr 12, 2021

I'm going to update this to work with the latest API, but as a temporary workaround, you can change:

install_requires=['plexapi'],

to:

install_requires=['plexapi==4.2.0']

to use the compatible API version. I haven't tested this, though, so I'm working under the assumption nothing's changed on Plex's end.

@josephmoyer
Copy link
Author

Still bad. I already had plexapi at 4.2.0.

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/joe/plex2letterboxd/plex2letterboxd/__main__.py", line 4, in <module>
    plex2letterboxd.main()
  File "/home/joe/plex2letterboxd/plex2letterboxd/plex2letterboxd.py", line 61, in main
    write_csv(sections, args.output)
  File "/home/joe/plex2letterboxd/plex2letterboxd/plex2letterboxd.py", line 44, in write_csv
    for movie in section.search(sort='lastViewedAt', unwatched=False):
  File "/home/joe/.local/lib/python3.8/site-packages/plexapi/library.py", line 669, in search
    args[category] = self._cleanSearchFilter(category, value, libtype)
  File "/home/joe/.local/lib/python3.8/site-packages/plexapi/library.py", line 717, in _cleanSearchFilter
    raise BadRequest('Unknown filter category: %s' % category)
plexapi.exceptions.BadRequest: Unknown filter category: unwatched

@josephmoyer
Copy link
Author

I think I got it to work.

Found this issue over in the plexapi repo, apparently, new server changes broke a lot of stuff. Upgraded my plexapi install to 5.2.0, and plex2letterboxd worked.

mtimkovich added a commit that referenced this issue Apr 12, 2021
@mtimkovich
Copy link
Owner

thanks for fixing the problem for me! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants