Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/blame/commit/b5aca50c9e56580fd843f1e3baba32f9cf0231f1/MediaBrowser.Controller/Drawing/ImageProcessorExtensions.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Drawing
|
|
|
|
|
{
|
|
|
|
|
public static class ImageProcessorExtensions
|
|
|
|
|
{
|
|
|
|
|
public static string GetImageCacheTag(this IImageProcessor processor, IHasImages item, ImageType imageType)
|
|
|
|
|
{
|
|
|
|
|
return processor.GetImageCacheTag(item, imageType, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetImageCacheTag(this IImageProcessor processor, IHasImages item, ImageType imageType, int imageIndex)
|
|
|
|
|
{
|
|
|
|
|
var imageInfo = item.GetImageInfo(imageType, imageIndex);
|
|
|
|
|
|
|
|
|
|
if (imageInfo == null)
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return processor.GetImageCacheTag(item, imageInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|