Skip to content

Commit

Permalink
Blacklist -> Blocklist
Browse files Browse the repository at this point in the history
  • Loading branch information
ta264 committed Oct 23, 2021
1 parent 6d1513a commit 43ed5f3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
PLUGIN_NAME: Lidarr.Plugin.Deemix
PLUGIN_VERSION: 1.0.0.${{ github.run_number }}
MINIMUM_LIDARR_VERSION: 0.8.0.2092
MINIMUM_LIDARR_VERSION: 1.0.0.2344
jobs:
build:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/Lidarr
Submodule Lidarr updated 329 files
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Parser.Model;

namespace NzbDrone.Core.Blacklisting
namespace NzbDrone.Core.Blocklisting
{
public class DeemixBlacklist : IBlacklistForProtocol
public class DeemixBlocklist : IBlocklistForProtocol
{
private readonly IBlacklistRepository _blacklistRepository;
private readonly IBlocklistRepository _blocklistRepository;

public DeemixBlacklist(IBlacklistRepository blacklistRepository)
public DeemixBlocklist(IBlocklistRepository blocklistRepository)
{
_blacklistRepository = blacklistRepository;
_blocklistRepository = blocklistRepository;
}

public string Protocol => nameof(DeemixDownloadProtocol);

public bool IsBlacklisted(int artistId, ReleaseInfo release)
public bool IsBlocklisted(int artistId, ReleaseInfo release)
{
var blacklistedByTorrentInfohash = _blacklistRepository.BlacklistedByTorrentInfoHash(artistId, release.Guid);
return blacklistedByTorrentInfohash.Any(b => SameRelease(b, release));
var blocklistedByTorrentInfohash = _blocklistRepository.BlocklistedByTorrentInfoHash(artistId, release.Guid);
return blocklistedByTorrentInfohash.Any(b => SameRelease(b, release));
}

public Blacklist GetBlacklist(DownloadFailedEvent message)
public Blocklist GetBlocklist(DownloadFailedEvent message)
{
return new Blacklist
return new Blocklist
{
ArtistId = message.ArtistId,
AlbumIds = message.AlbumIds,
Expand All @@ -43,7 +43,7 @@ public Blacklist GetBlacklist(DownloadFailedEvent message)
};
}

private bool SameRelease(Blacklist item, ReleaseInfo release)
private bool SameRelease(Blocklist item, ReleaseInfo release)
{
if (release.Guid.IsNotNullOrWhiteSpace())
{
Expand Down

0 comments on commit 43ed5f3

Please sign in to comment.