[15] fix flixpatrol

pull/1667/head
meisnate12 1 year ago
parent 371e28399f
commit 73a0894b09

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

@ -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)

@ -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}")

Loading…
Cancel
Save