Merge pull request #7396 from thornbill/update-artwork-repository
This commit is contained in:
commit
e3d9c53baa
|
@ -12,8 +12,7 @@ namespace MediaBrowser.Providers.Plugins.StudioImages
|
||||||
{
|
{
|
||||||
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||||
{
|
{
|
||||||
// TODO change this for a Jellyfin-hosted repository.
|
public const string DefaultServer = "https://raw.github.com/jellyfin/emby-artwork/master/studios";
|
||||||
public const string DefaultServer = "https://raw.github.com/MediaBrowser/MediaBrowser.Resources/master/images/imagesbyname";
|
|
||||||
|
|
||||||
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
||||||
: base(applicationPaths, xmlSerializer)
|
: base(applicationPaths, xmlSerializer)
|
||||||
|
|
|
@ -110,19 +110,19 @@ namespace MediaBrowser.Providers.Studios
|
||||||
|
|
||||||
private string GetUrl(string image, string filename)
|
private string GetUrl(string image, string filename)
|
||||||
{
|
{
|
||||||
return string.Format(CultureInfo.InvariantCulture, "{0}/{1}/{2}.jpg", repositoryUrl, image, filename);
|
return string.Format(CultureInfo.InvariantCulture, "{0}/images/{1}/{2}.jpg", repositoryUrl, image, filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task<string> EnsureThumbsList(string file, CancellationToken cancellationToken)
|
private Task<string> EnsureThumbsList(string file, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
string url = string.Format(CultureInfo.InvariantCulture, "{0}/studiothumbs.txt", repositoryUrl);
|
string url = string.Format(CultureInfo.InvariantCulture, "{0}/thumbs.txt", repositoryUrl);
|
||||||
|
|
||||||
return EnsureList(url, file, _fileSystem, cancellationToken);
|
return EnsureList(url, file, _fileSystem, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task<string> EnsurePosterList(string file, CancellationToken cancellationToken)
|
private Task<string> EnsurePosterList(string file, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
string url = string.Format(CultureInfo.InvariantCulture, "{0}/studioposters.txt", repositoryUrl);
|
string url = string.Format(CultureInfo.InvariantCulture, "{0}/posters.txt", repositoryUrl);
|
||||||
|
|
||||||
return EnsureList(url, file, _fileSystem, cancellationToken);
|
return EnsureList(url, file, _fileSystem, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user