fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Add initial Blazor Server project

recyclarr
Robert Dailey 3 years ago
parent 4254f66bc1
commit 65dfc9e5e5

@ -1,4 +1,5 @@
using System.Collections.Generic;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps
@ -7,6 +8,6 @@ namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps
{
Dictionary<string, QualityProfileCustomFormatScoreMapping> ProfileScores { get; }
List<(string name, string trashId, string profileName)> CustomFormatsWithoutScore { get; }
void Process(IEnumerable<ProcessedConfigData> configData);
void Process(RadarrConfig config, IReadOnlyCollection<ProcessedCustomFormatData> customFormats);
}
}

@ -7,18 +7,18 @@ using TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps;
namespace TrashLib.Radarr.CustomFormat.Processors
{
public interface IPersistenceProcessor
{
IDictionary<string, List<UpdatedFormatScore>> UpdatedScores { get; }
IReadOnlyCollection<string> InvalidProfileNames { get; }
CustomFormatTransactionData Transactions { get; }
Task PersistCustomFormats(
RadarrConfig config,
IEnumerable<ProcessedCustomFormatData> guideCfs,
IEnumerable<TrashIdMapping> deletedCfsInCache,
IDictionary<string, QualityProfileCustomFormatScoreMapping> profileScores);
void Reset();
}
// public interface IPersistenceProcessor
// {
// IDictionary<string, List<UpdatedFormatScore>> UpdatedScores { get; }
// IReadOnlyCollection<string> InvalidProfileNames { get; }
// CustomFormatTransactionData Transactions { get; }
//
// Task PersistCustomFormats(
// RadarrConfig config,
// IEnumerable<ProcessedCustomFormatData> guideCfs,
// IEnumerable<TrashIdMapping> deletedCfsInCache,
// IDictionary<string, QualityProfileCustomFormatScoreMapping> profileScores);
//
// void Reset();
// }
}

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Common.Extensions;
@ -82,9 +83,10 @@ namespace TrashLib.Radarr.CustomFormat.Processors.PersistenceSteps
private static FormatMappingEntry? FindScoreEntry(QualityProfileData.FormatItemData formatItem,
QualityProfileCustomFormatScoreMapping scoreMap)
{
return scoreMap.Mapping.FirstOrDefault(
m => m.CustomFormat.CacheEntry != null &&
formatItem.Format == m.CustomFormat.CacheEntry.CustomFormatId);
// return scoreMap.Mapping.FirstOrDefault(
// m => m.CustomFormat.CacheEntry != null &&
// formatItem.Format == m.CustomFormat.CacheEntry.CustomFormatId);
throw new NotImplementedException();
}
}
}

Loading…
Cancel
Save