Comic Support (#119)

* Implemented some basic regex for comic support

* Implemented support for comics

* empty filenames, like .test.jpg shouldn't be counted as image types.

* Fixed some regex for Manga's with commas or version tags in parenthesis.
This commit is contained in:
Joseph Milazzo 2021-03-28 12:09:42 -05:00 committed by GitHub
parent 55d47eb1b9
commit 7e54d332f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 255 additions and 16 deletions

View file

@ -98,7 +98,7 @@ namespace API.Services.Tasks
{
try
{
ProcessFile(f, folderPath.Path);
ProcessFile(f, folderPath.Path, library.Type);
}
catch (FileNotFoundException exception)
{
@ -333,9 +333,10 @@ namespace API.Services.Tasks
/// </summary>
/// <param name="path">Path of a file</param>
/// <param name="rootPath"></param>
private void ProcessFile(string path, string rootPath)
/// <param name="type">Library type to determine parsing to perform</param>
private void ProcessFile(string path, string rootPath, LibraryType type)
{
var info = Parser.Parser.Parse(path, rootPath);
var info = Parser.Parser.Parse(path, rootPath, type);
if (info == null)
{