Fix media process.

This commit is contained in:
JackDandy 2023-10-27 13:02:46 +01:00
parent d42232040f
commit 5e5c5313b5
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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)