mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
New: Movie Requested filter for interactive search
This commit is contained in:
@@ -210,6 +210,12 @@ export const defaultState = {
|
|||||||
name: 'rejectionCount',
|
name: 'rejectionCount',
|
||||||
label: () => translate('RejectionCount'),
|
label: () => translate('RejectionCount'),
|
||||||
type: filterBuilderTypes.NUMBER
|
type: filterBuilderTypes.NUMBER
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'movieRequested',
|
||||||
|
label: () => translate('MovieRequested'),
|
||||||
|
type: filterBuilderTypes.EXACT,
|
||||||
|
valueType: filterBuilderValueTypes.BOOL
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
selectedFilterKey: 'all'
|
selectedFilterKey: 'all'
|
||||||
|
|||||||
@@ -1045,6 +1045,7 @@
|
|||||||
"MovieMissingFromDisk": "Movie missing from disk",
|
"MovieMissingFromDisk": "Movie missing from disk",
|
||||||
"MovieNaming": "Movie Naming",
|
"MovieNaming": "Movie Naming",
|
||||||
"MovieOnly": "Movie Only",
|
"MovieOnly": "Movie Only",
|
||||||
|
"MovieRequested": "Movie Requested",
|
||||||
"MovieSearchResultsLoadError": "Unable to load results for this movie search. Try again later",
|
"MovieSearchResultsLoadError": "Unable to load results for this movie search. Try again later",
|
||||||
"MovieTitle": "Movie Title",
|
"MovieTitle": "Movie Title",
|
||||||
"MovieTitleToExcludeHelpText": "The title of the movie to exclude (can be anything meaningful)",
|
"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 int CustomFormatScore { get; set; }
|
||||||
public MovieMatchType MovieMatchType { get; set; }
|
public MovieMatchType MovieMatchType { get; set; }
|
||||||
public Movie Movie { get; set; }
|
public Movie Movie { get; set; }
|
||||||
|
public bool MovieRequested { get; set; }
|
||||||
public bool DownloadAllowed { get; set; }
|
public bool DownloadAllowed { get; set; }
|
||||||
public TorrentSeedConfiguration SeedConfiguration { get; set; }
|
public TorrentSeedConfiguration SeedConfiguration { get; set; }
|
||||||
public List<Language> Languages { get; set; }
|
public List<Language> Languages { get; set; }
|
||||||
|
|||||||
@@ -116,6 +116,11 @@ namespace NzbDrone.Core.Parser
|
|||||||
|
|
||||||
remoteMovie.Languages = parsedMovieInfo.Languages;
|
remoteMovie.Languages = parsedMovieInfo.Languages;
|
||||||
|
|
||||||
|
if (searchCriteria != null)
|
||||||
|
{
|
||||||
|
remoteMovie.MovieRequested = remoteMovie.Movie?.Id == searchCriteria.Movie?.Id;
|
||||||
|
}
|
||||||
|
|
||||||
return remoteMovie;
|
return remoteMovie;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ namespace Radarr.Api.V3.Indexers
|
|||||||
{
|
{
|
||||||
Release = remoteMovie.Release,
|
Release = remoteMovie.Release,
|
||||||
ParsedMovieInfo = remoteMovie.ParsedMovieInfo.JsonClone(),
|
ParsedMovieInfo = remoteMovie.ParsedMovieInfo.JsonClone(),
|
||||||
|
MovieRequested = remoteMovie.MovieRequested,
|
||||||
DownloadAllowed = remoteMovie.DownloadAllowed,
|
DownloadAllowed = remoteMovie.DownloadAllowed,
|
||||||
SeedConfiguration = remoteMovie.SeedConfiguration,
|
SeedConfiguration = remoteMovie.SeedConfiguration,
|
||||||
CustomFormats = remoteMovie.CustomFormats,
|
CustomFormats = remoteMovie.CustomFormats,
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ namespace Radarr.Api.V3.Indexers
|
|||||||
public string CommentUrl { get; set; }
|
public string CommentUrl { get; set; }
|
||||||
public string DownloadUrl { get; set; }
|
public string DownloadUrl { get; set; }
|
||||||
public string InfoUrl { get; set; }
|
public string InfoUrl { get; set; }
|
||||||
|
public bool MovieRequested { get; set; }
|
||||||
public bool DownloadAllowed { get; set; }
|
public bool DownloadAllowed { get; set; }
|
||||||
public int ReleaseWeight { get; set; }
|
public int ReleaseWeight { get; set; }
|
||||||
public string Edition { get; set; }
|
public string Edition { get; set; }
|
||||||
@@ -110,6 +111,7 @@ namespace Radarr.Api.V3.Indexers
|
|||||||
CommentUrl = releaseInfo.CommentUrl,
|
CommentUrl = releaseInfo.CommentUrl,
|
||||||
DownloadUrl = releaseInfo.DownloadUrl,
|
DownloadUrl = releaseInfo.DownloadUrl,
|
||||||
InfoUrl = releaseInfo.InfoUrl,
|
InfoUrl = releaseInfo.InfoUrl,
|
||||||
|
MovieRequested = remoteMovie.MovieRequested,
|
||||||
DownloadAllowed = remoteMovie.DownloadAllowed,
|
DownloadAllowed = remoteMovie.DownloadAllowed,
|
||||||
Edition = parsedMovieInfo.Edition,
|
Edition = parsedMovieInfo.Edition,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user