Shadow229 / Server-API-Calls

Automatically Add and Remove movies from Plex
9 stars 2 forks source link

Removing excluded genres causes an error #4

Closed zybron closed 1 year ago

zybron commented 1 year ago

After removing all excluded movie genres from the array in options.py I get the following error:

Traceback (most recent call last): File "/mnt/user/scripts/plex/main.py", line 6, in AutoGetMovies.update() File "/mnt/user/scripts/plex/AutoGetMovies.py", line 18, in update tmdb = TMDB() File "/mnt/user/scripts/plex/TMDB.py", line 27, in init self.excluded_genres = self.get_genre_id_list() File "/mnt/user/scripts/plex/TMDB.py", line 180, in get_genre_id_list return genre_ids_str

It looks like genre_ids_str probably needs to be set to an empty string in this case.

Shadow229 commented 1 year ago

fixed and removed default exclusions from the script so start point is an empty array. Left additions in as a comment for reference.

zybron commented 1 year ago

I didn't see a change in TMDB.py, but #6 will address it.

Shadow229 commented 1 year ago

Weird - must not have saved. I've resaved the file and pushed. Was a tab indent causing issues the variable scope.