public static void DownloadAutomaticImages(int seriesID, bool forceDownload) { ImagesSummary summary = GetSeriesImagesCounts(seriesID); if (summary.Fanart > 0) { DownloadAutomaticImages(GetFanartOnline(seriesID), seriesID, forceDownload); } if (summary.Poster > 0 || summary.Season > 0) { DownloadAutomaticImages(GetPosterOnline(seriesID), seriesID, forceDownload); } if (summary.Seasonwide > 0 || summary.Series > 0) { DownloadAutomaticImages(GetBannerOnline(seriesID), seriesID, forceDownload); } }
public static void DownloadAutomaticImages(int seriesID, bool forceDownload) { ImagesSummary summary = GetSeriesImagesCounts(seriesID); if (summary == null) { return; } if (summary.Fanart > 0 && ServerSettings.Instance.TvDB.AutoFanart) { DownloadAutomaticImages(GetFanartOnline(seriesID), seriesID, forceDownload); } if (summary.Poster > 0 || summary.Season > 0 && ServerSettings.Instance.TvDB.AutoPosters) { DownloadAutomaticImages(GetPosterOnline(seriesID), seriesID, forceDownload); } }