mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-24 06:27:08 -04:00
New: Movie Requested filter for interactive search
This commit is contained in:
parent
7189d7b15c
commit
36d4e9e6cd
6 changed files with 16 additions and 0 deletions
|
@ -210,6 +210,12 @@ export const defaultState = {
|
|||
name: 'rejectionCount',
|
||||
label: () => translate('RejectionCount'),
|
||||
type: filterBuilderTypes.NUMBER
|
||||
},
|
||||
{
|
||||
name: 'movieRequested',
|
||||
label: () => translate('MovieRequested'),
|
||||
type: filterBuilderTypes.EXACT,
|
||||
valueType: filterBuilderValueTypes.BOOL
|
||||
}
|
||||
],
|
||||
selectedFilterKey: 'all'
|
||||
|
|
|
@ -1045,6 +1045,7 @@
|
|||
"MovieMissingFromDisk": "Movie missing from disk",
|
||||
"MovieNaming": "Movie Naming",
|
||||
"MovieOnly": "Movie Only",
|
||||
"MovieRequested": "Movie Requested",
|
||||
"MovieSearchResultsLoadError": "Unable to load results for this movie search. Try again later",
|
||||
"MovieTitle": "Movie Title",
|
||||
"MovieTitleToExcludeHelpText": "The title of the movie to exclude (can be anything meaningful)",
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace NzbDrone.Core.Parser.Model
|
|||
public int CustomFormatScore { get; set; }
|
||||
public MovieMatchType MovieMatchType { get; set; }
|
||||
public Movie Movie { get; set; }
|
||||
public bool MovieRequested { get; set; }
|
||||
public bool DownloadAllowed { get; set; }
|
||||
public TorrentSeedConfiguration SeedConfiguration { get; set; }
|
||||
public List<Language> Languages { get; set; }
|
||||
|
|
|
@ -116,6 +116,11 @@ namespace NzbDrone.Core.Parser
|
|||
|
||||
remoteMovie.Languages = parsedMovieInfo.Languages;
|
||||
|
||||
if (searchCriteria != null)
|
||||
{
|
||||
remoteMovie.MovieRequested = remoteMovie.Movie?.Id == searchCriteria.Movie?.Id;
|
||||
}
|
||||
|
||||
return remoteMovie;
|
||||
}
|
||||
|
||||
|
|
|
@ -85,6 +85,7 @@ namespace Radarr.Api.V3.Indexers
|
|||
{
|
||||
Release = remoteMovie.Release,
|
||||
ParsedMovieInfo = remoteMovie.ParsedMovieInfo.JsonClone(),
|
||||
MovieRequested = remoteMovie.MovieRequested,
|
||||
DownloadAllowed = remoteMovie.DownloadAllowed,
|
||||
SeedConfiguration = remoteMovie.SeedConfiguration,
|
||||
CustomFormats = remoteMovie.CustomFormats,
|
||||
|
|
|
@ -44,6 +44,7 @@ namespace Radarr.Api.V3.Indexers
|
|||
public string CommentUrl { get; set; }
|
||||
public string DownloadUrl { get; set; }
|
||||
public string InfoUrl { get; set; }
|
||||
public bool MovieRequested { get; set; }
|
||||
public bool DownloadAllowed { get; set; }
|
||||
public int ReleaseWeight { get; set; }
|
||||
public string Edition { get; set; }
|
||||
|
@ -110,6 +111,7 @@ namespace Radarr.Api.V3.Indexers
|
|||
CommentUrl = releaseInfo.CommentUrl,
|
||||
DownloadUrl = releaseInfo.DownloadUrl,
|
||||
InfoUrl = releaseInfo.InfoUrl,
|
||||
MovieRequested = remoteMovie.MovieRequested,
|
||||
DownloadAllowed = remoteMovie.DownloadAllowed,
|
||||
Edition = parsedMovieInfo.Edition,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue