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

View File

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