예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }