mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
refactor(newsletter): Clarify very rare cases where newsletter doesn't publish movie
This commit is contained in:
parent
44840bcd87
commit
7705743251
1 changed files with 1 additions and 6 deletions
|
@ -503,16 +503,11 @@ namespace Ombi.Schedule.Jobs.Ombi
|
||||||
foreach (var content in ordered)
|
foreach (var content in ordered)
|
||||||
{
|
{
|
||||||
int.TryParse(content.TheMovieDbId, out var movieDbId);
|
int.TryParse(content.TheMovieDbId, out var movieDbId);
|
||||||
if (movieDbId <= 0)
|
|
||||||
{
|
|
||||||
_log.LogWarning($"{content.Title} does not have a TMDB ID, it won't be published.");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
var info = await _movieApi.GetMovieInformationWithExtraInfo(movieDbId, defaultLanguageCode);
|
var info = await _movieApi.GetMovieInformationWithExtraInfo(movieDbId, defaultLanguageCode);
|
||||||
var mediaurl = content.Url;
|
var mediaurl = content.Url;
|
||||||
if (info == null)
|
if (info == null)
|
||||||
{
|
{
|
||||||
_log.LogWarning($"TMDB does not know movie {content.Title}, it won't be published.");
|
_log.LogError($"TMDB does not know movie {content.Title}. This shouldn't happen because our media server knows it as ID '{movieDbId}'.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue