mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 08:47:59 +02:00
Add new category for FL
This commit is contained in:
@@ -103,6 +103,8 @@ public class FileList : TorrentIndexerBase<FileListSettings>
|
|||||||
caps.Categories.AddCategoryMapping(25, NewznabStandardCategory.Movies3D, "Filme 3D");
|
caps.Categories.AddCategoryMapping(25, NewznabStandardCategory.Movies3D, "Filme 3D");
|
||||||
caps.Categories.AddCategoryMapping(26, NewznabStandardCategory.MoviesBluRay, "Filme 4K Blu-Ray");
|
caps.Categories.AddCategoryMapping(26, NewznabStandardCategory.MoviesBluRay, "Filme 4K Blu-Ray");
|
||||||
caps.Categories.AddCategoryMapping(27, NewznabStandardCategory.TVUHD, "Seriale 4K");
|
caps.Categories.AddCategoryMapping(27, NewznabStandardCategory.TVUHD, "Seriale 4K");
|
||||||
|
caps.Categories.AddCategoryMapping(28, NewznabStandardCategory.MoviesForeign, "RO Dubbed");
|
||||||
|
caps.Categories.AddCategoryMapping(28, NewznabStandardCategory.TVForeign, "RO Dubbed");
|
||||||
|
|
||||||
return caps;
|
return caps;
|
||||||
}
|
}
|
||||||
|
@@ -151,7 +151,7 @@ public class FileListRequestGenerator : IIndexerRequestGenerator
|
|||||||
|
|
||||||
if (searchCriteria.Categories != null && searchCriteria.Categories.Any())
|
if (searchCriteria.Categories != null && searchCriteria.Categories.Any())
|
||||||
{
|
{
|
||||||
parameters.Set("category", string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories)));
|
parameters.Set("category", string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories).Distinct().ToList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Settings.FreeleechOnly)
|
if (Settings.FreeleechOnly)
|
||||||
|
Reference in New Issue
Block a user