Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/84e769b14e3addac40759be8ae092229cc393931 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fix: Remove title requirement in the API for adding movies when the TMDb is provided since that will over-ride the given title.

pull/4929/head
nitsua 5 years ago committed by Qstick
parent 0800029713
commit 84e769b14e

@ -75,7 +75,7 @@ namespace NzbDrone.Api.Movies
PostValidator.RuleFor(s => s.RootFolderPath)
.IsValidPath()
.When(s => s.Path.IsNullOrWhiteSpace());
PostValidator.RuleFor(s => s.Title).NotEmpty();
PostValidator.RuleFor(s => s.Title).NotEmpty().When(s => s.TmdbId <= 0);
PostValidator.RuleFor(s => s.TmdbId).NotNull().NotEmpty().SetValidator(moviesExistsValidator);
PutValidator.RuleFor(s => s.Path).IsValidPath();

@ -92,7 +92,7 @@ namespace Radarr.Api.V3.Movies
.IsValidPath()
.SetValidator(movieFolderAsRootFolderValidator)
.When(s => s.Path.IsNullOrWhiteSpace());
PostValidator.RuleFor(s => s.Title).NotEmpty();
PostValidator.RuleFor(s => s.Title).NotEmpty().When(s => s.TmdbId <= 0);
PostValidator.RuleFor(s => s.TmdbId).NotNull().NotEmpty().SetValidator(moviesExistsValidator);
PutValidator.RuleFor(s => s.Path).IsValidPath();

Loading…
Cancel
Save