mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-07 16:28:56 +01:00
support dvd without video_ts folder
This commit is contained in:
@@ -200,6 +200,19 @@ namespace MediaBrowser.Api.Movies
|
||||
.ToList();
|
||||
}
|
||||
|
||||
if (item is Video)
|
||||
{
|
||||
var imdbId = item.GetProviderId(MetadataProviders.Imdb);
|
||||
|
||||
// Use imdb id to try to filter duplicates of the same item
|
||||
if (!string.IsNullOrWhiteSpace(imdbId))
|
||||
{
|
||||
list = list
|
||||
.Where(i => !string.Equals(imdbId, i.GetProviderId(MetadataProviders.Imdb), StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
||||
var items = SimilarItemsHelper.GetSimilaritems(item, list, getSimilarityScore).ToList();
|
||||
|
||||
IEnumerable<BaseItem> returnItems = items;
|
||||
|
||||
Reference in New Issue
Block a user