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:
parent
55d47eb1b9
commit
7e54d332f5
4 changed files with 255 additions and 16 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue