mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 13:58:25 +00:00
fix unhashable error
This commit is contained in:
parent
942b7efa88
commit
bd4c59f286
2 changed files with 3 additions and 3 deletions
|
@ -1029,7 +1029,7 @@ class CollectionBuilder:
|
|||
movie_rating_keys = []
|
||||
for movie_id in movie_ids:
|
||||
if movie_id in self.library.movie_map:
|
||||
movie_rating_keys.append(self.library.movie_map[movie_id])
|
||||
movie_rating_keys.append(self.library.movie_map[movie_id][0])
|
||||
elif movie_id not in self.missing_movies:
|
||||
self.missing_movies.append(movie_id)
|
||||
add_rating_keys(movie_rating_keys)
|
||||
|
@ -1038,7 +1038,7 @@ class CollectionBuilder:
|
|||
show_rating_keys = []
|
||||
for show_id in show_ids:
|
||||
if show_id in self.library.show_map:
|
||||
show_rating_keys.append(self.library.show_map[show_id])
|
||||
show_rating_keys.append(self.library.show_map[show_id][0])
|
||||
elif show_id not in self.missing_shows:
|
||||
self.missing_shows.append(show_id)
|
||||
add_rating_keys(show_rating_keys)
|
||||
|
|
|
@ -107,7 +107,7 @@ class Trakt:
|
|||
while current <= pages:
|
||||
if pages == 1:
|
||||
response = self.config.get(f"{base_url}{url}", headers=headers)
|
||||
if "X-Pagination-Page-Count" in response.headers:
|
||||
if "X-Pagination-Page-Count" in response.headers and "?" not in url:
|
||||
pages = int(response.headers["X-Pagination-Page-Count"])
|
||||
else:
|
||||
response = self.config.get(f"{base_url}{url}?page={current}", headers=headers)
|
||||
|
|
Loading…
Add table
Reference in a new issue