mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-15 01:15:05 +00:00
revert has_media_ext ... since these don't apply to filenames (dirs only)
This commit is contained in:
parent
9c5e71d677
commit
67d73fa401
1 changed files with 1 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue