From 7f9424260a76da8b675c9262055fc33787ff906b Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Thu, 26 Jan 2023 14:03:13 -0700 Subject: [PATCH] Format --- src/jellyfin.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/jellyfin.py b/src/jellyfin.py index 762c6ed..be94a15 100644 --- a/src/jellyfin.py +++ b/src/jellyfin.py @@ -358,16 +358,21 @@ class Jellyfin: library_id = watched["Identifiers"]["library_id"] library_title = watched["Identifiers"]["library_title"] # Get all library types excluding "Folder" - types = set([x["Type"] for x in watched["Items"] if x["Type"] not in ["Folder"]]) + types = set( + [ + x["Type"] + for x in watched["Items"] + if x["Type"] not in ["Folder"] + ] + ) # If there are multiple types in library raise error if len(types) > 1: raise Exception( f"Jellyfin: Library {library_title} has multiple types: {types}" - ) + ) library_type = types.pop() - skip_reason = check_skip_logic( library_title, library_type,