Closed ghost closed 9 months ago
When attempting to run 'reset-posters-tmdb.py' on all items in a library, the following error is given:
Starting reset-posters-tmdb 0.1.1 at 2024-02-02 11:14:32 tmdb config... connecting to http://*************** getting all items from the library [Movies]... Traceback (most recent call last): File "reset-posters-tmdb.py", line 275, in <module> library_items = get_all_from_library(plex, the_lib) File "/usr/local/src/other/Media-Scripts/Plex/helpers.py", line 235, in get_all_from_library lib_size = get_size(the_lib, tgt_class, filter) File "/usr/local/src/other/Media-Scripts/Plex/helpers.py", line 225, in get_size foo = the_lib.search(libtype=tgt_class) TypeError: search() got an unexpected keyword argument 'libtype'
Setting a valid label results in the script running without an error.
My .env
PMS: 1.40.0.7775 Python 3.7.16 Package Version ------------------------- --------- about-time 3.1.1 alive-progress 2.4.1 backports.cached-property 1.0.2 certifi 2022.12.7 cffi 1.15.1 cfgv 3.3.1 charset-normalizer 3.3.2 cinemagoer 2023.5.1 cryptography 42.0.2 decorator 5.1.1 distlib 0.3.8 filelock 3.12.2 filetype 1.2.0 grapheme 0.6.0 greenlet 3.0.3 identify 2.5.24 idna 3.6 IMDbPY 2022.7.9 importlib-metadata 6.7.0 lxml 5.1.0 nodeenv 1.8.0 pathvalidate 3.2.0 piexif 1.1.3 Pillow 9.5.0 pip 22.3.1 platformdirs 4.0.0 PlexAPI 4.14.0 pre-commit 2.21.0 pycparser 2.21 pyOpenSSL 24.0.0 python-dotenv 0.21.1 PyYAML 6.0.1 requests 2.31.0 ruamel.yaml 0.18.5 ruamel.yaml.clib 0.2.8 setuptools 65.6.3 SQLAlchemy 1.4.51 tabulate 0.9.0 tmdbapis 1.2.2 tmdbsimple 2.9.1 tmdbv3api 1.9.0 tvdb-v4-official 1.1.0 typing_extensions 4.7.1 urllib3 2.0.7 validators 0.20.0 virtualenv 20.25.0 wheel 0.38.4 zipp 3.15.0
When attempting to run 'reset-posters-tmdb.py' on all items in a library, the following error is given:
Setting a valid label results in the script running without an error.
My .env