mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Changed how series parsing works. Now at the end of the Parse() call, if we still haven't figured out the Series, we will default to taking the file name and cleaning it. This allows files that have no numbers to be picked up. (#310)
Series Parsing now, at the end of the Parse() call if we still haven't figured out the Series, will default to taking the file name and cleaning it. This allows files that have no numbers to be picked up.
This commit is contained in:
parent
d02d2d3cb5
commit
becf2ec7a6
@ -473,8 +473,11 @@ namespace API.Parser
|
||||
ret.Chapters = DefaultChapter;
|
||||
ret.Volumes = DefaultVolume;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (string.IsNullOrEmpty(ret.Series))
|
||||
{
|
||||
ret.Series = CleanTitle(fileName);
|
||||
}
|
||||
|
||||
return ret.Series == string.Empty ? null : ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user