revert has_media_ext ... since these don't apply to filenames (dirs only)

This commit is contained in:
Prinz23 2023-10-28 02:37:13 +02:00
parent 9c5e71d677
commit 67d73fa401

View file

@ -158,9 +158,7 @@ def has_media_ext(filename):
return False
sep_file = filename.rpartition('.')
return (None is re.search(
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)
return (None is re.search('extras?$', sep_file[0], re.I)) and (sep_file[2].lower() in mediaExtensions)
def has_image_ext(filename):