Skip to content

Commit

Permalink
retroflix: fix search api error. resolves #11881 (#11914)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang committed Jun 13, 2021
1 parent 131c7fe commit c9e6015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Jackett.Common/Indexers/Abstract/SpeedAppTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -87,7 +88,7 @@ protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuer
//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"}
};
Expand Down
2 changes: 2 additions & 0 deletions src/Jackett.Common/Indexers/RetroFlix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
};
Expand Down

0 comments on commit c9e6015

Please sign in to comment.