Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/aacaa3e140b43f5d196da612f785cc4451717752
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
2 additions and
12 deletions
@ -200,19 +200,14 @@ namespace Ombi.Core.Engine.V2
public async Task < IEnumerable < SearchMovieViewModel > > NowPlayingMovies ( int currentPosition , int amountToLoad )
{
var langCode = await DefaultLanguageCode ( null ) ;
var isOldTrendingSourceEnabled = await _feature . FeatureEnabled ( FeatureNames . OldTrendingSource ) ;
var pages = PaginationHelper . GetNextPages ( currentPosition , amountToLoad , _theMovieDbMaxPageItems ) ;
var results = new List < MovieDbSearchResult > ( ) ;
foreach ( var pagesToLoad in pages )
{
var search = ( ) = > ( isOldTrendingSourceEnabled ) ?
MovieApi . NowPlaying ( langCode , pagesToLoad . Page )
: MovieApi . TrendingMovies ( langCode , pagesToLoad . Page ) ;
var apiResult = await Cache . GetOrAddAsync ( nameof ( NowPlayingMovies ) + pagesToLoad . Page + langCode ,
search , DateTimeOffset . Now . AddHours ( 12 ) ) ;
( ) = > MovieApi . TrendingMovies ( langCode , pagesToLoad . Page ) , DateTimeOffset . Now . AddHours ( 12 ) ) ;
results . AddRange ( apiResult . Skip ( pagesToLoad . Skip ) . Take ( pagesToLoad . Take ) ) ;
}
return await TransformMovieResultsToResponse ( results ) ;
@ -138,17 +138,13 @@ namespace Ombi.Core.Engine.V2
public async Task < IEnumerable < SearchTvShowViewModel > > Trending ( int currentlyLoaded , int amountToLoad )
{
var langCode = await DefaultLanguageCode ( null ) ;
var isOldTrendingSourceEnabled = await _feature . FeatureEnabled ( FeatureNames . OldTrendingSource ) ;
var pages = PaginationHelper . GetNextPages ( currentlyLoaded , amountToLoad , ResultLimit ) ;
var results = new List < MovieDbSearchResult > ( ) ;
foreach ( var pagesToLoad in pages )
{
var search = ( async ( ) = > ( isOldTrendingSourceEnabled ) ?
await _movieApi . TopRatedTv ( langCode , pagesToLoad . Page )
: await _movieApi . TrendingTv ( langCode , pagesToLoad . Page ) ) ;
var apiResult = await Cache . GetOrAddAsync ( nameof ( Trending ) + langCode + pagesToLoad . Page ,
search , DateTimeOffset . Now . AddHours ( 12 ) ) ;
( ) = > _movieApi . TrendingTv ( langCode , pagesToLoad . Page ) , DateTimeOffset . Now . AddHours ( 12 ) ) ;
results . AddRange ( apiResult . Skip ( pagesToLoad . Skip ) . Take ( pagesToLoad . Take ) ) ;
}
@ -20,7 +20,6 @@ namespace Ombi.Settings.Settings.Models
public static class FeatureNames
{
public const string Movie4KRequests = nameof ( Movie4KRequests ) ;
public const string OldTrendingSource = nameof ( OldTrendingSource ) ;
public const string PlayedSync = nameof ( PlayedSync ) ;
}
}