mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -21,6 +21,7 @@ namespace Jackett.Common.Indexers.Abstract
|
|||||||
public abstract class SpeedAppTracker : BaseWebIndexer
|
public abstract class SpeedAppTracker : BaseWebIndexer
|
||||||
{
|
{
|
||||||
protected virtual string ItemsPerPage => "100";
|
protected virtual string ItemsPerPage => "100";
|
||||||
|
protected virtual bool UseP2PReleaseName => false;
|
||||||
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"},
|
||||||
@@ -135,10 +136,10 @@ namespace Jackett.Common.Indexers.Abstract
|
|||||||
var dlVolumeFactor = row.Value<double>("download_volume_factor");
|
var dlVolumeFactor = row.Value<double>("download_volume_factor");
|
||||||
var ulVolumeFactor = row.Value<double>("upload_volume_factor");
|
var ulVolumeFactor = row.Value<double>("upload_volume_factor");
|
||||||
|
|
||||||
// fix for Retroflix
|
|
||||||
var title = row.Value<string>("name");
|
var title = row.Value<string>("name");
|
||||||
if (title.ToUpper().StartsWith("[REQUESTED] "))
|
// fix for #10883
|
||||||
title = title.Substring(12);
|
if (UseP2PReleaseName && !string.IsNullOrWhiteSpace(row.Value<string>("p2p_release_name")))
|
||||||
|
title = row.Value<string>("p2p_release_name");
|
||||||
|
|
||||||
var release = new ReleaseInfo
|
var release = new ReleaseInfo
|
||||||
{
|
{
|
||||||
|
@@ -13,6 +13,7 @@ namespace Jackett.Common.Indexers
|
|||||||
public class RetroFlix : SpeedAppTracker
|
public class RetroFlix : SpeedAppTracker
|
||||||
{
|
{
|
||||||
protected override string ItemsPerPage => "90";
|
protected override string ItemsPerPage => "90";
|
||||||
|
protected override bool UseP2PReleaseName => true;
|
||||||
|
|
||||||
public override string[] LegacySiteLinks { get; protected set; } = {
|
public override string[] LegacySiteLinks { get; protected set; } = {
|
||||||
"https://retroflix.net/"
|
"https://retroflix.net/"
|
||||||
|
Reference in New Issue
Block a user