|
|
@ -1105,11 +1105,14 @@ class CollectionBuilder:
|
|
|
|
keys = [keys]
|
|
|
|
keys = [keys]
|
|
|
|
total = len(keys)
|
|
|
|
total = len(keys)
|
|
|
|
max_length = len(str(total))
|
|
|
|
max_length = len(str(total))
|
|
|
|
|
|
|
|
if self.filters and self.details["show_filtered"] is True:
|
|
|
|
|
|
|
|
logger.info("")
|
|
|
|
|
|
|
|
logger.info("Filtering Builder:")
|
|
|
|
for i, key in enumerate(keys, 1):
|
|
|
|
for i, key in enumerate(keys, 1):
|
|
|
|
if key not in self.rating_keys:
|
|
|
|
if key not in self.rating_keys:
|
|
|
|
if key in filtered_keys:
|
|
|
|
if key in filtered_keys:
|
|
|
|
if self.details["show_filtered"] is True:
|
|
|
|
if self.details["show_filtered"] is True:
|
|
|
|
logger.info(f"{filtered_keys[key][0]} Collection | X | {filtered_keys[key][1]}")
|
|
|
|
logger.info(f"{name} Collection | X | {filtered_keys[key]}")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
current = self.fetch_item(key)
|
|
|
|
current = self.fetch_item(key)
|
|
|
@ -1121,7 +1124,7 @@ class CollectionBuilder:
|
|
|
|
self.rating_keys.append(key)
|
|
|
|
self.rating_keys.append(key)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if key not in filtered_keys:
|
|
|
|
if key not in filtered_keys:
|
|
|
|
filtered_keys[key] = (name, current_title)
|
|
|
|
filtered_keys[key] = current_title
|
|
|
|
if self.details["show_filtered"] is True:
|
|
|
|
if self.details["show_filtered"] is True:
|
|
|
|
logger.info(f"{name} Collection | X | {current_title}")
|
|
|
|
logger.info(f"{name} Collection | X | {current_title}")
|
|
|
|
def check_map(input_ids):
|
|
|
|
def check_map(input_ids):
|
|
|
@ -1143,12 +1146,9 @@ class CollectionBuilder:
|
|
|
|
self.missing_shows.append(show_id)
|
|
|
|
self.missing_shows.append(show_id)
|
|
|
|
return items_found_inside
|
|
|
|
return items_found_inside
|
|
|
|
for method, values in self.methods:
|
|
|
|
for method, values in self.methods:
|
|
|
|
logger.debug("")
|
|
|
|
|
|
|
|
logger.debug(f"Method: {method}")
|
|
|
|
|
|
|
|
logger.debug(f"Values: {values}")
|
|
|
|
|
|
|
|
for value in values:
|
|
|
|
for value in values:
|
|
|
|
logger.debug("")
|
|
|
|
logger.debug("")
|
|
|
|
logger.debug(f"Value: {value}")
|
|
|
|
logger.debug(f"Builder: {method}: {value}")
|
|
|
|
logger.info("")
|
|
|
|
logger.info("")
|
|
|
|
if "plex" in method: add_rating_keys(self.library.get_items(method, value))
|
|
|
|
if "plex" in method: add_rating_keys(self.library.get_items(method, value))
|
|
|
|
elif "tautulli" in method: add_rating_keys(self.library.Tautulli.get_items(self.library, value))
|
|
|
|
elif "tautulli" in method: add_rating_keys(self.library.Tautulli.get_items(self.library, value))
|
|
|
|