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

local variable 'target_rating_for_collection' referenced before assignment #5

Open
alexander-paterson opened this issue Oct 16, 2023 · 0 comments

Comments

@alexander-paterson
Copy link

I'm trying to use this script, I have cloned the repo, installed PlexAPI and added my token to the script.

When I run the script, I get the following:

alex@optiplex:~/git/plex_and_media_utilities$ python3 plex_collection_content_rating.py

COLLECTION: 28 Days/Weeks Later Collection: gb/18
    FILM: 28 Days Later: 18 [rank:999]
    FILM: 28 Weeks Later: 18 [rank:999]
MIN RANK: 999
Traceback (most recent call last):
  File "/srv/dev-disk-by-label-data/users/alex/git/plex_and_media_utilities/plex_collection_content_rating.py", line 84, in <module>
    main()
  File "/srv/dev-disk-by-label-data/users/alex/git/plex_and_media_utilities/plex_collection_content_rating.py", line 81, in main
    update_collection_ratings()
  File "/srv/dev-disk-by-label-data/users/alex/git/plex_and_media_utilities/plex_collection_content_rating.py", line 47, in update_collection_ratings
    if collection.contentRating != target_rating_for_collection:
UnboundLocalError: local variable 'target_rating_for_collection' referenced before assignment
alex@optiplex:~/git/plex_and_media_utilities$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant