Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/919b8ef9e2c7ddb0c4e92237db1c8ed3f7436914?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Use collection initializers when possible

pull/12375/head
CS 7 months ago
parent b34cbc2f16
commit 919b8ef9e2

@ -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…
Cancel
Save