Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
using NzbWebDAV.Models.Nzb;
namespace NzbWebDAV.Models;
public class MultipartFile
{
public required List<FilePart> FileParts { get; init; }
public long FileSize => FileParts.Last().ByteRange.EndExclusive;
public class FilePart
{
public required NzbFile NzbFile { get; init; }
public required LongRange ByteRange { get; init; }
public long PartSize => ByteRange.Count;
}
}