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/ae859fd56f569217458e438a357f432bb35e9f0c/Emby.Drawing/ImageHelpers.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace Emby.Drawing
|
|
|
|
|
{
|
|
|
|
|
internal static class ImageHelpers
|
|
|
|
|
{
|
|
|
|
|
internal static List<string> ProjectPaths(List<string> paths, int count)
|
|
|
|
|
{
|
|
|
|
|
if (count <= 0)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentOutOfRangeException("count");
|
|
|
|
|
}
|
|
|
|
|
if (paths.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentOutOfRangeException("paths");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var list = new List<string>();
|
|
|
|
|
|
|
|
|
|
AddToList(list, paths, count);
|
|
|
|
|
|
|
|
|
|
return list.Take(count).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void AddToList(List<string> list, List<string> paths, int count)
|
|
|
|
|
{
|
|
|
|
|
while (list.Count < count)
|
|
|
|
|
{
|
|
|
|
|
foreach (var path in paths)
|
|
|
|
|
{
|
|
|
|
|
list.Add(path);
|
|
|
|
|
|
|
|
|
|
if (list.Count >= count)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|