Fixed build and added some nice little things

pull/4069/head v4.0.1116
tidusjar 4 years ago
parent 728741bfa1
commit c3810def36

@ -124,5 +124,8 @@
}
}
},
"defaultProject": "ombi"
"defaultProject": "ombi",
"cli": {
"analytics": false
}
}

File diff suppressed because one or more lines are too long

@ -513,7 +513,7 @@ namespace Ombi.Controllers.V1.External
var status = await LidarrApi.Status(settings.ApiKey, settings.FullUri);
return new TesterResultModel
{
IsValid = status?.urlBase == settings.SubDir || string.IsNullOrEmpty(result.urlBase) && string.IsNullOrEmpty(settings.SubDir),
IsValid = status?.urlBase == settings.SubDir || string.IsNullOrEmpty(status.urlBase) && string.IsNullOrEmpty(settings.SubDir),
ExpectedSubDir = status?.urlBase
};
}

@ -203,7 +203,7 @@ namespace Ombi.Controllers.V1
var item = rand.Next(moviesArray.Length);
var result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}movie{moviesArray[item]}", async () => await FanartTvApi.GetMovieImages(moviesArray[item].ToString(), key.Value), DateTime.Now.AddDays(1));
while (!result.moviebackground.Any())
while (!result.moviebackground?.Any() ?? true)
{
item = rand.Next(moviesArray.Length);
result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}movie{moviesArray[item]}", async () => await FanartTvApi.GetMovieImages(moviesArray[item].ToString(), key.Value), DateTime.Now.AddDays(1));
@ -220,7 +220,7 @@ namespace Ombi.Controllers.V1
var item = rand.Next(tvArray.Length);
var result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}tv{tvArray[item]}", async () => await FanartTvApi.GetTvImages(tvArray[item], key.Value), DateTime.Now.AddDays(1));
while (!result.showbackground.Any())
while (!result.showbackground?.Any() ?? true)
{
item = rand.Next(tvArray.Length);
result = await _cache.GetOrAdd($"{CacheKeys.FanartTv}tv{tvArray[item]}", async () => await FanartTvApi.GetTvImages(tvArray[item], key.Value), DateTime.Now.AddDays(1));

@ -25,24 +25,40 @@
399106,
351286,
348350,
539885,
508442,
664767,
260513,
372058,
299536,
581389,
577922,
383498,
330457,
755812,
495764,
14160,
429617,
475557,
420818,
775996,
283995
],
"TvShows": [
121361,
361753,
295685,
74205,
362392,
81189,
79126,
332858,
73762,
79349,
349309,
275274,
305288,
260449,
296762,
280619,
305074,

Loading…
Cancel
Save