retroflix: use scene format for movies. resolves #10883 (#11915)

This commit is contained in:
Diego Heras
2021-06-13 22:26:58 +02:00
committed by GitHub
parent c9e6015e99
commit b26b4717ef
2 changed files with 5 additions and 3 deletions

View File

@@ -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
{ {

View File

@@ -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/"