Skip to content

Commit

Permalink
improve on missing tracker search
Browse files Browse the repository at this point in the history
  • Loading branch information
tastysugar committed Aug 10, 2024
1 parent fa090aa commit 8dd5584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OKP.Core/Interface/Acgrip/AcgripAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private bool Valid()
}
foreach (var tracker in trackers)
{
if (!torrent.Data.TorrentObject.Trackers.ToList().Exists(p => p.First().TrimEnd('/').ToLower() == tracker.TrimEnd('/').ToLower()))
if (!torrent.Data.TorrentObject.Trackers.ToList().SelectMany(p => p).ToList().Exists(p => p.TrimEnd('/').ToLower() == tracker.TrimEnd('/').ToLower()))
{
Log.Error("缺少Tracker:{0}", tracker);
return false;
Expand Down
2 changes: 1 addition & 1 deletion OKP.Core/Interface/Nyaa/NyaaAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private bool Valid()
}
foreach (var tracker in trackers)
{
if (!torrent.Data.TorrentObject.Trackers.ToList().Exists(p => p.First().TrimEnd('/').ToLower() == tracker.TrimEnd('/').ToLower()))
if (!torrent.Data.TorrentObject.Trackers.ToList().SelectMany(p => p).ToList().Exists(p => p.TrimEnd('/').ToLower() == tracker.TrimEnd('/').ToLower()))
{
Log.Error("缺少Tracker:{0}", tracker);
return false;
Expand Down

0 comments on commit 8dd5584

Please sign in to comment.