mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-01 12:44:44 -04:00
* More cases for parsing regex * Fixed a bug where chapter cover images weren't being updated due to a missed not. * Removed a piece of code that was needed for upgrading, since all beta users agreed to wipe db. * Fixed InProgress to properly respect order and show more recent activity first. Issue is with IEntityDate LastModified not updating in DataContext. * Updated dependencies to lastest stable. * LastModified on Volumes wasn't updating, validated it does update when data is changed. * Fixed #152 - Sorting issue when finding cover image. * Fixed #151 - Sort files during scan. * Fixed #161 - Remove files that don't exist from chapters during scan. * Fixed #155 - Ignore images that start with !, expand cover detection by checking for the word cover as well as folder, and some code cleanup to make code more concise. * Fixed #153 - Ensure that we persist series name changes and don't override on scanning. * Fixed a broken unit test
27 lines
802 B
C#
27 lines
802 B
C#
using System.Collections.Generic;
|
|
using API.Entities;
|
|
|
|
namespace API.Extensions
|
|
{
|
|
public static class SeriesExtensions
|
|
{
|
|
/// <summary>
|
|
/// Checks against all the name variables of the Series if it matches anything in the list.
|
|
/// </summary>
|
|
/// <param name="series"></param>
|
|
/// <param name="list"></param>
|
|
/// <returns></returns>
|
|
public static bool NameInList(this Series series, IEnumerable<string> list)
|
|
{
|
|
foreach (var name in list)
|
|
{
|
|
if (name == series.Name || name == series.LocalizedName || name == series.OriginalName || name == series.NormalizedName)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
} |