Feature/tech debt (#199)
* Added an icon for building the exe * Technical debt
This commit is contained in:
parent
d92e9e7602
commit
f694145cd9
26 changed files with 76 additions and 112 deletions
|
|
@ -203,7 +203,7 @@ namespace API.Services.Tasks
|
|||
foreach (var (key, infos) in parsedSeries)
|
||||
{
|
||||
// Key is normalized already
|
||||
Series existingSeries = null;
|
||||
Series existingSeries;
|
||||
try
|
||||
{
|
||||
existingSeries = library.Series.SingleOrDefault(s => s.NormalizedName == key || Parser.Parser.Normalize(s.OriginalName) == key);
|
||||
|
|
@ -212,16 +212,12 @@ namespace API.Services.Tasks
|
|||
{
|
||||
_logger.LogCritical(e, "There are multiple series that map to normalized key {Key}. You can manually delete the entity via UI and rescan to fix it", key);
|
||||
var duplicateSeries = library.Series.Where(s => s.NormalizedName == key || Parser.Parser.Normalize(s.OriginalName) == key).ToList();
|
||||
//var firstSeries = duplicateSeries.First();
|
||||
//duplicateSeries.
|
||||
foreach (var series in duplicateSeries)
|
||||
{
|
||||
_logger.LogCritical("{Key} maps with {Series}", key, series.OriginalName);
|
||||
|
||||
}
|
||||
// Merge them together?
|
||||
//_unitOfWork.AppUserProgressRepository.MapSeriesProgressFromTo(firstSeries.Id, );
|
||||
|
||||
|
||||
continue;
|
||||
}
|
||||
if (existingSeries == null)
|
||||
|
|
@ -366,7 +362,7 @@ namespace API.Services.Tasks
|
|||
foreach (var info in parsedInfos)
|
||||
{
|
||||
var specialTreatment = info.IsSpecialInfo();
|
||||
Chapter chapter = null;
|
||||
Chapter chapter;
|
||||
try
|
||||
{
|
||||
chapter = volume.Chapters.GetChapterByRange(info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue