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 System.Collections.Generic;
using TrashLib.Radarr.Config;
using TrashLib.Radarr.CustomFormat.Models; using TrashLib.Radarr.CustomFormat.Models;
namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps
@ -7,6 +8,6 @@ namespace TrashLib.Radarr.CustomFormat.Processors.GuideSteps
{ {
Dictionary<string, QualityProfileCustomFormatScoreMapping> ProfileScores { get; } Dictionary<string, QualityProfileCustomFormatScoreMapping> ProfileScores { get; }
List<(string name, string trashId, string profileName)> CustomFormatsWithoutScore { 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 namespace TrashLib.Radarr.CustomFormat.Processors
{ {
public interface IPersistenceProcessor // public interface IPersistenceProcessor
{ // {
IDictionary<string, List<UpdatedFormatScore>> UpdatedScores { get; } // IDictionary<string, List<UpdatedFormatScore>> UpdatedScores { get; }
IReadOnlyCollection<string> InvalidProfileNames { get; } // IReadOnlyCollection<string> InvalidProfileNames { get; }
CustomFormatTransactionData Transactions { get; } // CustomFormatTransactionData Transactions { get; }
//
Task PersistCustomFormats( // Task PersistCustomFormats(
RadarrConfig config, // RadarrConfig config,
IEnumerable<ProcessedCustomFormatData> guideCfs, // IEnumerable<ProcessedCustomFormatData> guideCfs,
IEnumerable<TrashIdMapping> deletedCfsInCache, // IEnumerable<TrashIdMapping> deletedCfsInCache,
IDictionary<string, QualityProfileCustomFormatScoreMapping> profileScores); // IDictionary<string, QualityProfileCustomFormatScoreMapping> profileScores);
//
void Reset(); // void Reset();
} // }
} }

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

Loading…
Cancel
Save