Skip to content

Commit

Permalink
fix: download images during auto-scheduled tmdb updates
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Sep 29, 2024
1 parent 3485160 commit 4577af3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ await scheduler.StartJob<GetAniDBAnimeJob>(c =>

if (isNew || animeEpisodeChanges.Count > 0)
foreach (var xref in anime.TmdbShowCrossReferences)
await scheduler.StartJob<UpdateTmdbShowJob>(job => job.TmdbShowID = xref.TmdbShowID).ConfigureAwait(false);
await scheduler.StartJob<UpdateTmdbShowJob>(job =>
{
job.TmdbShowID = xref.TmdbShowID;
job.DownloadImages = true;
}).ConfigureAwait(false);
}

await ProcessRelations(response).ConfigureAwait(false);
Expand Down
6 changes: 5 additions & 1 deletion Shoko.Server/Scheduling/Jobs/Shoko/ProcessFileJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,11 @@ await scheduler.StartJob<GetAniDBAnimeJob>(c =>

var tmdbShowXrefs = RepoFactory.CrossRef_AniDB_TMDB_Show.GetByAnidbAnimeID(animeID);
foreach (var xref in tmdbShowXrefs)
await scheduler.StartJob<UpdateTmdbShowJob>(job => job.TmdbShowID = xref.TmdbShowID).ConfigureAwait(false);
await scheduler.StartJob<UpdateTmdbShowJob>(job =>
{
job.TmdbShowID = xref.TmdbShowID;
job.DownloadImages = true;
}).ConfigureAwait(false);
}
}

Expand Down

0 comments on commit 4577af3

Please sign in to comment.