mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Removed a piece of code that was needed for upgrading, since all beta users agreed to wipe db.
This commit is contained in:
parent
7d54923041
commit
876466d05b
@ -261,18 +261,6 @@ namespace API.Services.Tasks
|
||||
var chapter = info.IsSpecial ? volume.Chapters.SingleOrDefault(c => c.Range == info.Filename || (c.Files.Select(f => f.FilePath).Contains(info.FullFilePath)))
|
||||
: volume.Chapters.SingleOrDefault(c => c.Range == info.Chapters);
|
||||
|
||||
if (info.IsSpecial && chapter != null && chapter.Files.Count > 1)
|
||||
{
|
||||
var fileToKeep = chapter.Files.SingleOrDefault(f => f.FilePath == info.FullFilePath);
|
||||
if (fileToKeep != null)
|
||||
{
|
||||
chapter.Files = new List<MangaFile>()
|
||||
{
|
||||
fileToKeep
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (chapter == null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user