From 6b78a109a5f0392715e3fa084cef5bce3e1a9ba4 Mon Sep 17 00:00:00 2001 From: Winterbird Date: Sat, 2 Sep 2023 20:48:56 +0200 Subject: [PATCH] fix moviefiles in collections --- adbb/jellyfin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adbb/jellyfin.py b/adbb/jellyfin.py index c9cc7d3..ae6e61a 100644 --- a/adbb/jellyfin.py +++ b/adbb/jellyfin.py @@ -367,7 +367,7 @@ def create_anime_collection( if not files: continue if 'Movies' in root: - for f in files: + for f in [x for x in files if x.rsplit('.', 1)[-1].lower() in adbb.utils.SUPPORTED_FILETYPES]: my_path = os.path.join(root, f) if my_path in added_paths: continue