From f8d899445a639099438ea1f92338f71788df9801 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 27 Oct 2024 19:53:31 +0200 Subject: [PATCH] knaben: fix cs --- src/Jackett.Common/Indexers/Definitions/Knaben.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Indexers/Definitions/Knaben.cs b/src/Jackett.Common/Indexers/Definitions/Knaben.cs index c5847a8a8..cb75b9542 100644 --- a/src/Jackett.Common/Indexers/Definitions/Knaben.cs +++ b/src/Jackett.Common/Indexers/Definitions/Knaben.cs @@ -61,7 +61,7 @@ namespace Jackett.Common.Indexers.Definitions } }; - caps.Categories.AddCategoryMapping(1000000, TorznabCatType.Audio,"Audio"); + caps.Categories.AddCategoryMapping(1000000, TorznabCatType.Audio, "Audio"); caps.Categories.AddCategoryMapping(1001000, TorznabCatType.AudioMP3, "MP3"); caps.Categories.AddCategoryMapping(1002000, TorznabCatType.AudioLossless, "Lossless"); caps.Categories.AddCategoryMapping(1003000, TorznabCatType.AudioAudiobook, "Audiobook"); @@ -255,8 +255,8 @@ namespace Jackett.Common.Indexers.Definitions Guid = new Uri(row.InfoUrl), Title = row.Title, Details = new Uri(row.InfoUrl), - Link = row.DownloadUrl.IsNotNullOrWhiteSpace() && Uri.TryCreate(row.DownloadUrl, UriKind.Absolute, out var downloadUrl) ? downloadUrl : null, - MagnetUri = row.MagnetUrl.IsNotNullOrWhiteSpace() && Uri.TryCreate(row.MagnetUrl, UriKind.Absolute, out var magnetUrl) ? magnetUrl : null, + Link = row.DownloadUrl.IsNotNullOrWhiteSpace() && Uri.TryCreate(row.DownloadUrl, UriKind.Absolute, out var downloadUrl) ? downloadUrl : null, + MagnetUri = row.MagnetUrl.IsNotNullOrWhiteSpace() && Uri.TryCreate(row.MagnetUrl, UriKind.Absolute, out var magnetUrl) ? magnetUrl : null, Category = row.CategoryIds.SelectMany(cat => _categories.MapTrackerCatToNewznab(cat.ToString())).Distinct().ToList(), InfoHash = row.InfoHash, Size = row.Size,