Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/683bda49d84cd4f935abd0b1ed10e11f3b212c83
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
32 additions and
0 deletions
@ -0,0 +1,31 @@
using System.Collections.Generic ;
using System.Linq ;
using Nancy ;
using NzbDrone.Api.Extensions ;
using NzbDrone.Core.Tv ;
namespace NzbDrone.Api.Movie
{
public class MovieEditorModule : NzbDroneApiModule
{
private readonly IMovieService _movieService ;
public MovieEditorModule ( IMovieService movieService )
: base ( "/movie/editor" )
{
_movieService = movieService ;
Put [ "/" ] = Movie = > SaveAll ( ) ;
}
private Response SaveAll ( )
{
var resources = Request . Body . FromJson < List < MovieResource > > ( ) ;
var Movie = resources . Select ( MovieResource = > MovieResource . ToModel ( _movieService . GetMovie ( MovieResource . Id ) ) ) . ToList ( ) ;
return _movieService . UpdateMovie ( Movie )
. ToResource ( )
. AsResponse ( HttpStatusCode . Accepted ) ;
}
}
}
@ -119,6 +119,7 @@
<Compile Include= "Movies\MovieModule.cs" />
<Compile Include= "Movies\RenameMovieModule.cs" />
<Compile Include= "Movies\RenameMovieResource.cs" />
<Compile Include= "Movies\MovieEditorModule.cs" />
<Compile Include= "Parse\ParseModule.cs" />
<Compile Include= "Parse\ParseResource.cs" />
<Compile Include= "ManualImport\ManualImportModule.cs" />