CI: Fix Validation. Print marklog on failed validation

Signed-off-by: Luis Garcia <git@luigi311.com>
This commit is contained in:
Luis Garcia
2024-10-27 16:37:08 -06:00
parent 7294241fed
commit a096a09eb7
3 changed files with 72 additions and 65 deletions

View File

@@ -398,8 +398,8 @@ class JellyfinEmby:
user_watched[library_title][show_guids] = mark_episodes_list
for episode in mark_episodes_list:
logger(
f"{self.server_type}: Added {episode} to {user_name} {show_display_name} watched list",
1,
f"{self.server_type}: Added {episode} to {user_name} watched list",
3,
)
logger(
@@ -431,6 +431,10 @@ class JellyfinEmby:
for library in all_libraries["Items"]:
library_id = library["Id"]
library_title = library["Name"]
if library_title not in sync_libraries:
continue
identifiers = {
"library_id": library_id,
"library_title": library_title,
@@ -451,9 +455,6 @@ class JellyfinEmby:
library_id = library["Identifiers"]["library_id"]
library_title = library["Identifiers"]["library_title"]
if library_title not in sync_libraries:
continue
# Get all library types excluding "Folder"
types = set(
[