mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (Indexer) Added TvSearchParam.ImdbId
to SpeedApp
This commit is contained in:
@@ -9,12 +9,9 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
public class RetroFlix : SpeedAppBase
|
public class RetroFlix : SpeedAppBase
|
||||||
{
|
{
|
||||||
public override string Name => "RetroFlix";
|
public override string Name => "RetroFlix";
|
||||||
|
|
||||||
public override string[] IndexerUrls => new string[] { "https://retroflix.club/" };
|
public override string[] IndexerUrls => new string[] { "https://retroflix.club/" };
|
||||||
public override string[] LegacyUrls => new string[] { "https://retroflix.net/" };
|
public override string[] LegacyUrls => new string[] { "https://retroflix.net/" };
|
||||||
|
|
||||||
public override string Description => "Private Torrent Tracker for Classic Movies / TV / General Releases";
|
public override string Description => "Private Torrent Tracker for Classic Movies / TV / General Releases";
|
||||||
|
|
||||||
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
||||||
public override TimeSpan RateLimit => TimeSpan.FromSeconds(2.1);
|
public override TimeSpan RateLimit => TimeSpan.FromSeconds(2.1);
|
||||||
|
|
||||||
@@ -29,15 +26,11 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
{
|
{
|
||||||
TvSearchParams = new List<TvSearchParam>
|
TvSearchParams = new List<TvSearchParam>
|
||||||
{
|
{
|
||||||
TvSearchParam.Q,
|
TvSearchParam.Q, TvSearchParam.ImdbId, TvSearchParam.Season, TvSearchParam.Ep,
|
||||||
TvSearchParam.Season,
|
|
||||||
TvSearchParam.Ep,
|
|
||||||
TvSearchParam.ImdbId
|
|
||||||
},
|
},
|
||||||
MovieSearchParams = new List<MovieSearchParam>
|
MovieSearchParams = new List<MovieSearchParam>
|
||||||
{
|
{
|
||||||
MovieSearchParam.Q,
|
MovieSearchParam.Q, MovieSearchParam.ImdbId,
|
||||||
MovieSearchParam.ImdbId
|
|
||||||
},
|
},
|
||||||
MusicSearchParams = new List<MusicSearchParam>
|
MusicSearchParams = new List<MusicSearchParam>
|
||||||
{
|
{
|
||||||
|
@@ -8,14 +8,10 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
public class SpeedApp : SpeedAppBase
|
public class SpeedApp : SpeedAppBase
|
||||||
{
|
{
|
||||||
public override string Name => "SpeedApp.io";
|
public override string Name => "SpeedApp.io";
|
||||||
|
|
||||||
public override string[] IndexerUrls => new string[] { "https://speedapp.io/" };
|
public override string[] IndexerUrls => new string[] { "https://speedapp.io/" };
|
||||||
public override string[] LegacyUrls => new string[] { "https://speedapp.io" };
|
public override string[] LegacyUrls => new string[] { "https://speedapp.io" };
|
||||||
|
|
||||||
public override string Description => "SpeedApp is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL";
|
public override string Description => "SpeedApp is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL";
|
||||||
|
|
||||||
public override string Language => "ro-RO";
|
public override string Language => "ro-RO";
|
||||||
|
|
||||||
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
||||||
|
|
||||||
public SpeedApp(IIndexerHttpClient httpClient, IEventAggregator eventAggregator, IIndexerStatusService indexerStatusService, IConfigService configService, Logger logger, IIndexerRepository indexerRepository)
|
public SpeedApp(IIndexerHttpClient httpClient, IEventAggregator eventAggregator, IIndexerStatusService indexerStatusService, IConfigService configService, Logger logger, IIndexerRepository indexerRepository)
|
||||||
@@ -29,14 +25,11 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
{
|
{
|
||||||
TvSearchParams = new List<TvSearchParam>
|
TvSearchParams = new List<TvSearchParam>
|
||||||
{
|
{
|
||||||
TvSearchParam.Q,
|
TvSearchParam.Q, TvSearchParam.ImdbId, TvSearchParam.Season, TvSearchParam.Ep,
|
||||||
TvSearchParam.Season,
|
|
||||||
TvSearchParam.Ep,
|
|
||||||
},
|
},
|
||||||
MovieSearchParams = new List<MovieSearchParam>
|
MovieSearchParams = new List<MovieSearchParam>
|
||||||
{
|
{
|
||||||
MovieSearchParam.Q,
|
MovieSearchParam.Q, MovieSearchParam.ImdbId,
|
||||||
MovieSearchParam.ImdbId,
|
|
||||||
},
|
},
|
||||||
MusicSearchParams = new List<MusicSearchParam>
|
MusicSearchParams = new List<MusicSearchParam>
|
||||||
{
|
{
|
||||||
|
@@ -29,11 +29,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
public abstract class SpeedAppBase : TorrentIndexerBase<SpeedAppSettings>
|
public abstract class SpeedAppBase : TorrentIndexerBase<SpeedAppSettings>
|
||||||
{
|
{
|
||||||
private string LoginUrl => Settings.BaseUrl + "api/login";
|
private string LoginUrl => Settings.BaseUrl + "api/login";
|
||||||
|
|
||||||
public override Encoding Encoding => Encoding.UTF8;
|
public override Encoding Encoding => Encoding.UTF8;
|
||||||
|
|
||||||
public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
|
public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
|
||||||
|
|
||||||
public override IndexerCapabilities Capabilities => SetCapabilities();
|
public override IndexerCapabilities Capabilities => SetCapabilities();
|
||||||
|
|
||||||
private IIndexerRepository _indexerRepository;
|
private IIndexerRepository _indexerRepository;
|
||||||
@@ -304,7 +301,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
Description = torrent.ShortDescription,
|
Description = torrent.ShortDescription,
|
||||||
Size = torrent.Size,
|
Size = torrent.Size,
|
||||||
ImdbId = ParseUtil.GetImdbID(torrent.ImdbId).GetValueOrDefault(),
|
ImdbId = ParseUtil.GetImdbID(torrent.ImdbId).GetValueOrDefault(),
|
||||||
DownloadUrl = $"{_settings.BaseUrl}/api/torrent/{torrent.Id}/download",
|
DownloadUrl = $"{_settings.BaseUrl}api/torrent/{torrent.Id}/download",
|
||||||
PosterUrl = torrent.Poster,
|
PosterUrl = torrent.Poster,
|
||||||
InfoUrl = torrent.Url,
|
InfoUrl = torrent.Url,
|
||||||
Grabs = torrent.TimesCompleted,
|
Grabs = torrent.TimesCompleted,
|
||||||
|
Reference in New Issue
Block a user