-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
943 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,6 @@ _NCrunch_* | |
_TeamCity* | ||
|
||
# Sonarr | ||
config.xml | ||
nzbdrone.log*txt | ||
UpdateLogs/ | ||
*workspace.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
using Common.Configuration.ContentBlocker; | ||
|
||
namespace Common.Configuration.Arr; | ||
|
||
public abstract record ArrConfig | ||
{ | ||
public required bool Enabled { get; init; } | ||
|
||
public Block Block { get; init; } = new(); | ||
|
||
public required List<ArrInstance> Instances { get; init; } | ||
} | ||
|
||
public record Block | ||
{ | ||
public BlocklistType Type { get; set; } | ||
|
||
public string? Path { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Common.Configuration.Arr; | ||
|
||
public sealed record LidarrConfig : ArrConfig | ||
{ | ||
public const string SectionName = "Lidarr"; | ||
} |
2 changes: 1 addition & 1 deletion
2
code/Domain/Enums/BlocklistType.cs → ...iguration/ContentBlocker/BlocklistType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Domain.Enums; | ||
namespace Common.Configuration.ContentBlocker; | ||
|
||
public enum BlocklistType | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Domain.Models.Arr.Blocking; | ||
|
||
public record BlockedItem | ||
{ | ||
public required string Hash { get; init; } | ||
|
||
public required Uri InstanceUrl { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Domain.Models.Arr.Blocking; | ||
|
||
public sealed record LidarrBlockedItem : BlockedItem | ||
{ | ||
public required long AlbumId { get; init; } | ||
|
||
public required long ArtistId { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Domain.Models.Arr.Blocking; | ||
|
||
public sealed record RadarrBlockedItem : BlockedItem | ||
{ | ||
public required long MovieId { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Domain.Models.Arr.Blocking; | ||
|
||
public sealed record SonarrBlockedItem : BlockedItem | ||
{ | ||
public required long EpisodeId { get; init; } | ||
|
||
public required long SeasonNumber { get; init; } | ||
|
||
public required long SeriesId { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Domain.Models.Lidarr; | ||
|
||
public sealed record Album | ||
{ | ||
public long Id { get; set; } | ||
|
||
public string Title { get; set; } | ||
|
||
public long ArtistId { get; set; } | ||
|
||
public Artist Artist { get; set; } | ||
} |
Oops, something went wrong.