InsertDisc / pattrmm

Plex Meta Manager helper script for a chronological Returning Soon collection with dates.
GNU General Public License v3.0
44 stars 6 forks source link

Script fails trying to get the library section id #7

Closed bartolomesoriano closed 1 year ago

bartolomesoriano commented 1 year ago

While trying to get the library section id, the script fails with the following error:

"Traceback (most recent call last): File "E:\plex-meta-manager\config\scripts\pattrmm.py", line 699, in plexCall = vars.plexApi('url') + '/library/sections/' + vars.plexGet(library) + '/all' ^^^^^^^^^^^^^^^^^^^^^ File "E:\plex-meta-manager\config\scripts\vars.py", line 347, in plexGet return key ^^^ UnboundLocalError: cannot access local variable 'key' where it is not associated with a value"

@InsertDisc , from your comment on Discord this is happening for libraries that have spaces in the name. In my case, the library does have a space in the name: "TV Shows".

halfloaf123 commented 1 year ago

having the exact same issue

InsertDisc commented 1 year ago

This should be resolved now. Will close once confirmed.

InsertDisc commented 1 year ago

Issue has been confirmed fixed.