mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Daily series status will be fetched from API on data refresh
This commit is contained in:
parent
17ffdbc89e
commit
4a77197877
4 changed files with 39 additions and 4 deletions
|
@ -2,7 +2,13 @@ using NzbDrone.Core.Tv;
|
|||
|
||||
namespace NzbDrone.Core.DataAugmentation.DailySeries
|
||||
{
|
||||
public class DailySeriesService
|
||||
public interface IDailySeriesService
|
||||
{
|
||||
void UpdateDailySeries();
|
||||
bool IsDailySeries(int tvdbid);
|
||||
}
|
||||
|
||||
public class DailySeriesService : IDailySeriesService
|
||||
{
|
||||
//TODO: add timer command
|
||||
|
||||
|
@ -15,7 +21,7 @@ namespace NzbDrone.Core.DataAugmentation.DailySeries
|
|||
_seriesService = seriesService;
|
||||
}
|
||||
|
||||
public virtual void UpdateDailySeries()
|
||||
public void UpdateDailySeries()
|
||||
{
|
||||
var dailySeries = _proxy.GetDailySeriesIds();
|
||||
|
||||
|
@ -29,5 +35,10 @@ namespace NzbDrone.Core.DataAugmentation.DailySeries
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsDailySeries(int tvdbid)
|
||||
{
|
||||
return _proxy.IsDailySeries(tvdbid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue