From 5e5c5313b5af004f2cc9baca13329a8ae11e34eb Mon Sep 17 00:00:00 2001 From: JackDandy Date: Fri, 27 Oct 2023 13:02:46 +0100 Subject: [PATCH] Fix media process. --- CHANGES.md | 5 +++++ sickgear/helpers.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 718eca4e..392727cc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,11 @@ * Add ignore Plex extras +[develop changelog] + +* Fix media process being ignored by Plex extras + + ### 3.30.4 (2023-10-12 11:50:00 UTC) * Add metadata source attribution in footer diff --git a/sickgear/helpers.py b/sickgear/helpers.py index 69bc0d37..15e84e77 100644 --- a/sickgear/helpers.py +++ b/sickgear/helpers.py @@ -159,7 +159,7 @@ def has_media_ext(filename): sep_file = filename.rpartition('.') return (None is re.search( - '(?:extras|-Behind\sThe\sScenes|-Deleted\sScenes|-Featurettes|-Interviews|-Scenes|-Shorts|-Trailers|-Other)?$', + r'(extras|-(?:Behind\sThe\sScenes|Deleted\sScenes|Featurettes|Interviews|Scenes|Shorts|Trailers|Other))$', sep_file[0], re.I)) and (sep_file[2].lower() in mediaExtensions)