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/ec3237ba55a6c0c6e7a31e2aaa5fbf77c9978ac7/Emby.Naming/Video/FileStack.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
jellyfin/Emby.Naming/Video/FileStack.cs

52 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
namespace Emby.Naming.Video
{
4 years ago
/// <summary>
/// Object holding list of files paths with additional information.
/// </summary>
public class FileStack
{
4 years ago
/// <summary>
/// Initializes a new instance of the <see cref="FileStack"/> class.
/// </summary>
public FileStack()
{
Files = new List<string>();
}
4 years ago
/// <summary>
/// Gets or sets name of file stack.
/// </summary>
public string Name { get; set; } = string.Empty;
4 years ago
/// <summary>
/// Gets or sets list of paths in stack.
/// </summary>
public List<string> Files { get; set; }
4 years ago
/// <summary>
/// Gets or sets a value indicating whether stack is directory stack.
/// </summary>
public bool IsDirectoryStack { get; set; }
4 years ago
/// <summary>
/// Helper function to determine if path is in the stack.
/// </summary>
/// <param name="file">Path of desired file.</param>
/// <param name="isDirectory">Requested type of stack.</param>
/// <returns>True if file is in the stack.</returns>
public bool ContainsFile(string file, bool isDirectory)
{
if (IsDirectoryStack == isDirectory)
{
return Files.Contains(file, StringComparer.OrdinalIgnoreCase);
}
return false;
}
}
}