mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
don't use omdb for missing episodes
This commit is contained in:
parent
d12bc8596a
commit
d9afd21ef5
5 changed files with 23 additions and 1 deletions
|
@ -287,7 +287,9 @@ namespace MediaBrowser.Controller.Entities.TV
|
|||
id.AnimeSeriesIndex = series.AnimeSeriesIndex;
|
||||
}
|
||||
|
||||
id.IsMissingEpisode = IsMissingEpisode;
|
||||
id.IndexNumberEnd = IndexNumberEnd;
|
||||
id.IsVirtualUnaired = IsVirtualUnaired;
|
||||
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace MediaBrowser.Controller.Providers
|
|||
public int? IndexNumberEnd { get; set; }
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
public bool IsMissingEpisode { get; set; }
|
||||
public bool IsVirtualUnaired { get; set; }
|
||||
|
||||
public EpisodeInfo()
|
||||
{
|
||||
SeriesProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
|
|
@ -310,6 +310,11 @@ namespace MediaBrowser.Providers.Manager
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!(item is Audio) && !(item is Video))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace MediaBrowser.Providers.TV
|
|||
{
|
||||
private readonly IJsonSerializer _jsonSerializer;
|
||||
private readonly IHttpClient _httpClient;
|
||||
private OmdbItemProvider _itemProvider;
|
||||
private readonly OmdbItemProvider _itemProvider;
|
||||
|
||||
public OmdbEpisodeProvider(IJsonSerializer jsonSerializer, IHttpClient httpClient, ILogger logger, ILibraryManager libraryManager)
|
||||
{
|
||||
|
@ -41,6 +41,12 @@ namespace MediaBrowser.Providers.TV
|
|||
Item = new Episode()
|
||||
};
|
||||
|
||||
// Allowing this will dramatically increase scan times
|
||||
if (info.IsMissingEpisode || info.IsVirtualUnaired)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
var imdbId = info.GetProviderId(MetadataProviders.Imdb);
|
||||
if (string.IsNullOrWhiteSpace(imdbId))
|
||||
{
|
||||
|
|
|
@ -64,6 +64,12 @@ namespace MediaBrowser.Providers.TV
|
|||
{
|
||||
var result = new MetadataResult<Episode>();
|
||||
|
||||
// Allowing this will dramatically increase scan times
|
||||
if (info.IsMissingEpisode || info.IsVirtualUnaired)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
string seriesTmdbId;
|
||||
info.SeriesProviderIds.TryGetValue(MetadataProviders.Tmdb.ToString(), out seriesTmdbId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue