retroflix: fix search api error. resolves #11881 (#11914)

This commit is contained in:
Diego Heras 2021-06-13 22:01:12 +02:00 committed by GitHub
parent 131c7fea94
commit c9e6015e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ namespace Jackett.Common.Indexers.Abstract
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
public abstract class SpeedAppTracker : BaseWebIndexer public abstract class SpeedAppTracker : BaseWebIndexer
{ {
protected virtual string ItemsPerPage => "100";
private readonly Dictionary<string, string> _apiHeaders = new Dictionary<string, string> private readonly Dictionary<string, string> _apiHeaders = new Dictionary<string, string>
{ {
{"Accept", "application/json"}, {"Accept", "application/json"},
@ -87,7 +88,7 @@ namespace Jackett.Common.Indexers.Abstract
//var categoryMapping = MapTorznabCapsToTrackers(query).Distinct().ToList(); //var categoryMapping = MapTorznabCapsToTrackers(query).Distinct().ToList();
var qc = new List<KeyValuePair<string, string>> // NameValueCollection don't support cat[]=19&cat[]=6 var qc = new List<KeyValuePair<string, string>> // NameValueCollection don't support cat[]=19&cat[]=6
{ {
{"itemsPerPage", "100"}, {"itemsPerPage", ItemsPerPage},
{"sort", "torrent.createdAt"}, {"sort", "torrent.createdAt"},
{"direction", "desc"} {"direction", "desc"}
}; };

View File

@ -12,6 +12,8 @@ namespace Jackett.Common.Indexers
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
public class RetroFlix : SpeedAppTracker public class RetroFlix : SpeedAppTracker
{ {
protected override string ItemsPerPage => "90";
public override string[] LegacySiteLinks { get; protected set; } = { public override string[] LegacySiteLinks { get; protected set; } = {
"https://retroflix.net/" "https://retroflix.net/"
}; };