Duncan Tourolle 4679b77d1a
Some checks failed
🏗️ Build Plugin / call (push) Failing after 0s
📝 Create/Update Release Draft & Release Bump PR / call (push) Failing after 0s
🔬 Run CodeQL / call (push) Failing after 0s
🧪 Test Plugin / call (push) Failing after 0s
First POC with podcasts library
2025-12-13 23:57:58 +01:00

20 lines
671 B
C#

using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Plugin.Jellypod.Models;
namespace Jellyfin.Plugin.Jellypod.Services;
/// <summary>
/// Service for fetching and parsing podcast RSS feeds.
/// </summary>
public interface IRssFeedService
{
/// <summary>
/// Fetches and parses a podcast from an RSS feed URL.
/// </summary>
/// <param name="feedUrl">The RSS feed URL.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The parsed podcast with episodes, or null if parsing failed.</returns>
Task<Podcast?> FetchPodcastAsync(string feedUrl, CancellationToken cancellationToken = default);
}