Format
This commit is contained in:
@@ -358,7 +358,13 @@ class Jellyfin:
|
|||||||
library_id = watched["Identifiers"]["library_id"]
|
library_id = watched["Identifiers"]["library_id"]
|
||||||
library_title = watched["Identifiers"]["library_title"]
|
library_title = watched["Identifiers"]["library_title"]
|
||||||
# Get all library types excluding "Folder"
|
# 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 there are multiple types in library raise error
|
||||||
if len(types) > 1:
|
if len(types) > 1:
|
||||||
@@ -367,7 +373,6 @@ class Jellyfin:
|
|||||||
)
|
)
|
||||||
library_type = types.pop()
|
library_type = types.pop()
|
||||||
|
|
||||||
|
|
||||||
skip_reason = check_skip_logic(
|
skip_reason = check_skip_logic(
|
||||||
library_title,
|
library_title,
|
||||||
library_type,
|
library_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user