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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
{
protected virtual string ItemsPerPage => "100";
protected virtual bool UseP2PReleaseName => false;
private readonly Dictionary<string, string> _apiHeaders = new Dictionary<string, string>
{
{"Accept", "application/json"},
@ -135,10 +136,10 @@ namespace Jackett.Common.Indexers.Abstract
var dlVolumeFactor = row.Value<double>("download_volume_factor");
var ulVolumeFactor = row.Value<double>("upload_volume_factor");
// fix for Retroflix
var title = row.Value<string>("name");
if (title.ToUpper().StartsWith("[REQUESTED] "))
title = title.Substring(12);
// fix for #10883
if (UseP2PReleaseName && !string.IsNullOrWhiteSpace(row.Value<string>("p2p_release_name")))
title = row.Value<string>("p2p_release_name");
var release = new ReleaseInfo
{

View File

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