mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-29 11:58:27 +01:00
proxy remote images through the server when previewing
This commit is contained in:
@@ -100,6 +100,7 @@ namespace MediaBrowser.Providers.TV
|
||||
return 0;
|
||||
})
|
||||
.ThenByDescending(i => i.CommunityRating ?? 0)
|
||||
.ThenByDescending(i => i.VoteCount ?? 0)
|
||||
.ToList();
|
||||
|
||||
return Task.FromResult<IEnumerable<RemoteImageInfo>>(list);
|
||||
|
||||
@@ -97,6 +97,7 @@ namespace MediaBrowser.Providers.TV
|
||||
return 0;
|
||||
})
|
||||
.ThenByDescending(i => i.CommunityRating ?? 0)
|
||||
.ThenByDescending(i => i.VoteCount ?? 0)
|
||||
.ToList();
|
||||
|
||||
return Task.FromResult<IEnumerable<RemoteImageInfo>>(list);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Globalization;
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Library;
|
||||
@@ -7,6 +6,7 @@ using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Providers;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -28,7 +28,7 @@ namespace MediaBrowser.Providers.TV
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "TvDb"; }
|
||||
get { return "TheTVDB"; }
|
||||
}
|
||||
|
||||
public bool Supports(BaseItem item)
|
||||
@@ -56,7 +56,8 @@ namespace MediaBrowser.Providers.TV
|
||||
|
||||
var files = TvdbEpisodeProvider.Current.GetEpisodeXmlFiles(episode, seriesDataPath);
|
||||
|
||||
var result = files.Select(i => GetImageInfo(i, cancellationToken)).Where(i => i != null);
|
||||
var result = files.Select(i => GetImageInfo(i, cancellationToken))
|
||||
.Where(i => i != null);
|
||||
|
||||
return Task.FromResult(result);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace MediaBrowser.Providers.TV
|
||||
|
||||
public static string ProviderName
|
||||
{
|
||||
get { return "TvDb"; }
|
||||
get { return "TheTVDB"; }
|
||||
}
|
||||
|
||||
public bool Supports(BaseItem item)
|
||||
@@ -147,6 +147,7 @@ namespace MediaBrowser.Providers.TV
|
||||
return 0;
|
||||
})
|
||||
.ThenByDescending(i => i.CommunityRating ?? 0)
|
||||
.ThenByDescending(i => i.VoteCount ?? 0)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace MediaBrowser.Providers.TV
|
||||
|
||||
public static string ProviderName
|
||||
{
|
||||
get { return "TvDb"; }
|
||||
get { return "TheTVDB"; }
|
||||
}
|
||||
|
||||
public bool Supports(BaseItem item)
|
||||
@@ -145,6 +145,7 @@ namespace MediaBrowser.Providers.TV
|
||||
return 0;
|
||||
})
|
||||
.ThenByDescending(i => i.CommunityRating ?? 0)
|
||||
.ThenByDescending(i => i.VoteCount ?? 0)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user