parent
07c4b48578
commit
fef596d5d4
@ -1,8 +1,10 @@
|
||||
using TrashLib.Services.Radarr.CustomFormat.Models;
|
||||
using TrashLib.Services.Radarr.QualityDefinition;
|
||||
|
||||
namespace TrashLib.Services.Radarr.CustomFormat.Guide;
|
||||
|
||||
public interface IRadarrGuideService
|
||||
{
|
||||
ICollection<CustomFormatData> GetCustomFormatData();
|
||||
ICollection<RadarrQualityData> GetQualities();
|
||||
}
|
||||
|
@ -1,6 +0,0 @@
|
||||
namespace TrashLib.Services.Radarr.QualityDefinition;
|
||||
|
||||
public interface IRadarrQualityGuideParser
|
||||
{
|
||||
ICollection<RadarrQualityData> GetQualities();
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
using Serilog;
|
||||
using TrashLib.Repo;
|
||||
using TrashLib.Services.Common.QualityDefinition;
|
||||
|
||||
namespace TrashLib.Services.Radarr.QualityDefinition;
|
||||
|
||||
internal class RadarrQualityGuideParser : IRadarrQualityGuideParser
|
||||
{
|
||||
private readonly QualityGuideParser<RadarrQualityData> _parser;
|
||||
private readonly IRepoPathsFactory _pathFactory;
|
||||
|
||||
public RadarrQualityGuideParser(ILogger log, IRepoPathsFactory pathFactory)
|
||||
{
|
||||
_parser = new QualityGuideParser<RadarrQualityData>(log);
|
||||
_pathFactory = pathFactory;
|
||||
}
|
||||
|
||||
public ICollection<RadarrQualityData> GetQualities()
|
||||
=> _parser.GetQualities(_pathFactory.Create().RadarrQualityPaths);
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
namespace TrashLib.Services.Sonarr.QualityDefinition;
|
||||
|
||||
public interface ISonarrQualityGuideParser
|
||||
{
|
||||
ICollection<SonarrQualityData> GetQualities();
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
using Serilog;
|
||||
using TrashLib.Repo;
|
||||
using TrashLib.Services.Common.QualityDefinition;
|
||||
|
||||
namespace TrashLib.Services.Sonarr.QualityDefinition;
|
||||
|
||||
internal class SonarrQualityGuideParser : ISonarrQualityGuideParser
|
||||
{
|
||||
private readonly QualityGuideParser<SonarrQualityData> _parser;
|
||||
private readonly IRepoPathsFactory _pathFactory;
|
||||
|
||||
public SonarrQualityGuideParser(ILogger log, IRepoPathsFactory pathFactory)
|
||||
{
|
||||
_parser = new QualityGuideParser<SonarrQualityData>(log);
|
||||
_pathFactory = pathFactory;
|
||||
}
|
||||
|
||||
public ICollection<SonarrQualityData> GetQualities()
|
||||
=> _parser.GetQualities(_pathFactory.Create().SonarrQualityPaths);
|
||||
}
|
@ -1,7 +1,10 @@
|
||||
using TrashLib.Services.Sonarr.QualityDefinition;
|
||||
|
||||
namespace TrashLib.Services.Sonarr.ReleaseProfile.Guide;
|
||||
|
||||
public interface ISonarrGuideService
|
||||
{
|
||||
IReadOnlyCollection<ReleaseProfileData> GetReleaseProfileData();
|
||||
ReleaseProfileData? GetUnfilteredProfileById(string trashId);
|
||||
ICollection<SonarrQualityData> GetQualities();
|
||||
}
|
||||
|
Loading…
Reference in new issue