First POC with podcasts library
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user