anilibria: deafault cat to TV when API category is null #5762

This commit is contained in:
Garfield69
2025-06-29 19:13:05 +12:00
parent 04155cae92
commit a3fbe86b13

View File

@@ -7,6 +7,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using AngleSharp; using AngleSharp;
using Autofac.Core; using Autofac.Core;
using Jackett.Common.Extensions;
using Jackett.Common.Helpers; using Jackett.Common.Helpers;
using Jackett.Common.Models; using Jackett.Common.Models;
using Jackett.Common.Models.DTO.Anilibria; using Jackett.Common.Models.DTO.Anilibria;
@@ -133,7 +134,7 @@ namespace Jackett.Common.Indexers.Definitions
Grabs = torrentInfo.Grabs, Grabs = torrentInfo.Grabs,
DownloadVolumeFactor = 0, DownloadVolumeFactor = 0,
UploadVolumeFactor = 1, UploadVolumeFactor = 1,
Category = MapTrackerCatToNewznab(torrentInfo.Category) Category = MapTrackerCatToNewznab((torrentInfo.Category.IsNotNullOrWhiteSpace()) ? torrentInfo.Category : "TV")
})); }));
return releases; return releases;
} }