proxy remote images through the server when previewing

This commit is contained in:
Luke Pulverenti
2013-11-04 16:50:37 -05:00
parent 403534f80e
commit ea9fddd5ca
6 changed files with 108 additions and 8 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);
}

View File

@@ -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();
}

View File

@@ -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();
}