mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Merge pull request #12375 from tobias-varden/pr_2
Update the default repository URL for the StudioImages plugin
This commit is contained in:
commit
a21ecda78f
2 changed files with 4 additions and 10 deletions
|
@ -18,7 +18,7 @@ namespace MediaBrowser.Providers.Plugins.StudioImages
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Artwork repository URL.
|
/// Artwork repository URL.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string DefaultServer = "https://raw.github.com/jellyfin/emby-artwork/master/studios";
|
public const string DefaultServer = "https://raw.githubusercontent.com/jellyfin/emby-artwork/master/studios";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="Plugin"/> class.
|
/// Initializes a new instance of the <see cref="Plugin"/> class.
|
||||||
|
|
|
@ -53,10 +53,7 @@ namespace MediaBrowser.Providers.Plugins.StudioImages
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IEnumerable<ImageType> GetSupportedImages(BaseItem item)
|
public IEnumerable<ImageType> GetSupportedImages(BaseItem item)
|
||||||
{
|
{
|
||||||
return new ImageType[]
|
return [ImageType.Thumb];
|
||||||
{
|
|
||||||
ImageType.Thumb
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -72,13 +69,10 @@ namespace MediaBrowser.Providers.Plugins.StudioImages
|
||||||
|
|
||||||
if (imageInfo is null)
|
if (imageInfo is null)
|
||||||
{
|
{
|
||||||
return Enumerable.Empty<RemoteImageInfo>();
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return new RemoteImageInfo[]
|
return [imageInfo];
|
||||||
{
|
|
||||||
imageInfo
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private RemoteImageInfo GetImage(BaseItem item, string filename, ImageType type, string remoteFilename)
|
private RemoteImageInfo GetImage(BaseItem item, string filename, ImageType type, string remoteFilename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue