-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,9 +87,18 @@ protected virtual bool OnStoreInfo(ComicInfo comicInfo) | |
} | ||
|
||
protected virtual bool IsSupportedImage(string file) | ||
{ | ||
string fileExt = Path.GetExtension(FileUtility.MakeValidFilename(file)); | ||
return supportedTypes.Any((string ext) => string.Equals(fileExt, "." + ext, StringComparison.OrdinalIgnoreCase)); | ||
} | ||
} | ||
{ | ||
if(ShouldIgnoreFile(file)) | ||
return false; | ||
|
||
string fileExt = Path.GetExtension(FileUtility.MakeValidFilename(file)); | ||
return supportedTypes.Any((string ext) => string.Equals(fileExt, "." + ext, StringComparison.OrdinalIgnoreCase)); | ||
} | ||
|
||
private static bool ShouldIgnoreFile(string file) | ||
{ | ||
string[] ignore = { ".DS_Store\\", "__MACOSX\\" }; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
maforget
Author
Owner
|
||
return ignore.Any(item => file.Contains(item)); | ||
} | ||
} | ||
} |
why hardcode this list?