[15] fix flixpatrol

This commit is contained in:
meisnate12 2023-10-17 13:40:08 -04:00
parent 371e28399f
commit 73a0894b09
3 changed files with 6 additions and 6 deletions

View file

@ -1 +1 @@
1.19.1-develop14
1.19.1-develop15

View file

@ -66,7 +66,7 @@ When adding a movie in Radarr you get the screen below to set these options use
### Sonarr Add Details
When adding a movie in Sonarr you get the screen below to set these options use `sonarr_folder`, `sonarr_monitor`, `sonarr_quality`, `sonarr_language`, `sonarr_series`, `sonarr_season`, `sonarr_tag`, `sonarr_search`, and `sonarr_cutoff_search`.
When adding a show in Sonarr you get the screen below to set these options use `sonarr_folder`, `sonarr_monitor`, `sonarr_quality`, `sonarr_language`, `sonarr_series`, `sonarr_season`, `sonarr_tag`, `sonarr_search`, and `sonarr_cutoff_search`.
![Sonarr Details](sonarr.png)

View file

@ -43,9 +43,9 @@ class FlixPatrol:
logger.info(f"\tPlatform: {data['platform'].replace('_', ' ').title()}")
logger.info(f"\tLocation: {data['location'].replace('_', ' ').title()}")
logger.info(f"\tLimit: {data['limit']}")
total_items = self.data[data["platform"]][data["location"]]["movies" if is_movie else "shows"][:data["limit"]]
if total_items > 0:
logger.info(f"Processed {total_items} TMDb IDs")
return total_items
items = self.data[data["platform"]][data["location"]]["movies" if is_movie else "shows"][:data["limit"]]
if len(items) > 0:
logger.info(f"Processed {len(items)} TMDb IDs")
return items
else:
raise Failed(f"FlixPatrol Error: No List Items found in {data}")