Floatplane channel plugin for Jellyfin 10.10.x: browse, HLS proxy, cookie session, CI release
Some checks failed
release / build-release (push) Has been cancelled
Some checks failed
release / build-release (push) Has been cancelled
- IChannel: creators -> sub-channels -> video posts (public listing API, search mapped) - IRequiresMediaInfoCallback -> signed proxy URLs; stream controller rewrites HLS so the AES-128 key is fetched server-side with the session cookie, segments stay on the CDN - delivery/info cached per token lifetime and throttled (~2/min) - config page: paste sails.sid + validate, extra creators, quality, search test - scripts/package.sh -> plugin folder + zip + md5 + manifest.json; Gitea release workflow - research docs, HAR analysis (HAR itself gitignored), install-pi5.sh Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
119
Jellyfin.Plugin.Floatplane/Api/Models/Creator.cs
Normal file
119
Jellyfin.Plugin.Floatplane/Api/Models/Creator.cs
Normal file
@@ -0,0 +1,119 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Jellyfin.Plugin.Floatplane.Api.Models;
|
||||
|
||||
/// <summary>A creator (e.g. LinusTechTips). Returned by creator/info, creator/named, creator/list.</summary>
|
||||
public class CreatorModel : IHasId
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsReferenceOnly { get; set; }
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string Urlname { get; set; } = string.Empty;
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
public string? About { get; set; }
|
||||
|
||||
public ImageModel? Cover { get; set; }
|
||||
|
||||
public ImageModel? Icon { get; set; }
|
||||
|
||||
public ImageModel? Card { get; set; }
|
||||
|
||||
public string? DefaultChannel { get; set; }
|
||||
|
||||
public List<ChannelModel> Channels { get; set; } = new();
|
||||
|
||||
public LiveStreamModel? LiveStream { get; set; }
|
||||
|
||||
public List<SubscriptionPlanModel> SubscriptionPlans { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>A sub-channel of a creator (e.g. TechLinked under LinusTechTips).</summary>
|
||||
public class ChannelModel : IHasId
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsReferenceOnly { get; set; }
|
||||
|
||||
public string? Creator { get; set; }
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string Urlname { get; set; } = string.Empty;
|
||||
|
||||
public string? About { get; set; }
|
||||
|
||||
public int Order { get; set; }
|
||||
|
||||
public ImageModel? Cover { get; set; }
|
||||
|
||||
public ImageModel? Card { get; set; }
|
||||
|
||||
public ImageModel? Icon { get; set; }
|
||||
}
|
||||
|
||||
public class LiveStreamModel
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
public ImageModel? Thumbnail { get; set; }
|
||||
|
||||
public string? Owner { get; set; }
|
||||
|
||||
public string? Channel { get; set; }
|
||||
|
||||
public string? StreamPath { get; set; }
|
||||
}
|
||||
|
||||
public class SubscriptionPlanModel
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? Price { get; set; }
|
||||
|
||||
public string? Currency { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Entry of GET /api/v3/user/subscriptions.</summary>
|
||||
public class SubscriptionModel
|
||||
{
|
||||
public string? StartDate { get; set; }
|
||||
|
||||
public string? EndDate { get; set; }
|
||||
|
||||
public string? Interval { get; set; }
|
||||
|
||||
public bool PaymentCancelled { get; set; }
|
||||
|
||||
public SubscriptionPlanModel? Plan { get; set; }
|
||||
|
||||
/// <summary>Creator id (24 hex chars).</summary>
|
||||
public string Creator { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>GET /api/v3/user/self.</summary>
|
||||
public class UserSelfModel
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public string Username { get; set; } = string.Empty;
|
||||
|
||||
public string? Email { get; set; }
|
||||
|
||||
public string? DisplayName { get; set; }
|
||||
|
||||
public ImageModel? ProfileImage { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user