Added OPML support
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
namespace Jellyfin.Plugin.Jellypod.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an outline element from an OPML file.
|
||||
/// </summary>
|
||||
public class OpmlOutline
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the outline title (text attribute).
|
||||
/// </summary>
|
||||
public string? Text { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the outline title (title attribute).
|
||||
/// </summary>
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the RSS feed URL (xmlUrl attribute).
|
||||
/// </summary>
|
||||
public string? XmlUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the website URL (htmlUrl attribute).
|
||||
/// </summary>
|
||||
public string? HtmlUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the description.
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the category.
|
||||
/// </summary>
|
||||
public string? Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the display title (prefers Title over Text).
|
||||
/// </summary>
|
||||
public string DisplayTitle => Title ?? Text ?? "Unknown";
|
||||
}
|
||||
Reference in New Issue
Block a user