refactor to unify data fetching and define abstract API for re-use
This commit is contained in:
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Jellyfin.Plugin.SRFPlay.Services;
|
||||
using Jellyfin.Plugin.SRFPlay.Services.Interfaces;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Jellyfin.Plugin.SRFPlay.ScheduledTasks;
|
||||
public class ContentRefreshTask : IScheduledTask
|
||||
{
|
||||
private readonly ILogger<ContentRefreshTask> _logger;
|
||||
private readonly ContentRefreshService _contentRefreshService;
|
||||
private readonly IContentRefreshService _contentRefreshService;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ContentRefreshTask"/> class.
|
||||
@@ -23,7 +23,7 @@ public class ContentRefreshTask : IScheduledTask
|
||||
/// <param name="contentRefreshService">The content refresh service.</param>
|
||||
public ContentRefreshTask(
|
||||
ILogger<ContentRefreshTask> logger,
|
||||
ContentRefreshService contentRefreshService)
|
||||
IContentRefreshService contentRefreshService)
|
||||
{
|
||||
_logger = logger;
|
||||
_contentRefreshService = contentRefreshService;
|
||||
|
||||
Reference in New Issue
Block a user