Remove 9 dead methods, 6 unused constants, and redundant ReaderWriterLockSlim from MetadataCache. Consolidate repeated patterns into HasChapters, IsPlayable, and ToLowerString helpers. Extract shared API methods in SRFApiClient. Move variant manifest rewriting from controller to StreamProxyService. Make Auto quality distinct from HD. Update README architecture section.
26 lines
907 B
C#
26 lines
907 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Jellyfin.Plugin.SRFPlay.Services.Interfaces;
|
|
|
|
/// <summary>
|
|
/// Interface for refreshing content from SRF API.
|
|
/// </summary>
|
|
public interface IContentRefreshService
|
|
{
|
|
/// <summary>
|
|
/// Refreshes latest content from SRF API using Play v3.
|
|
/// </summary>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>List of URNs for new content.</returns>
|
|
Task<List<string>> RefreshLatestContentAsync(CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Refreshes trending content from SRF API using Play v3.
|
|
/// </summary>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>List of URNs for trending content.</returns>
|
|
Task<List<string>> RefreshTrendingContentAsync(CancellationToken cancellationToken);
|
|
}
|