mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
Fully switched the TV shows over to use the other provider.
This commit is contained in:
parent
46dc9d95f1
commit
7677831bbc
14 changed files with 231 additions and 30 deletions
|
@ -37,9 +37,14 @@ namespace PlexRequests.Core
|
|||
{
|
||||
public class SettingsService
|
||||
{
|
||||
|
||||
public SettingsModel GetSettings(ICacheProvider cache)
|
||||
public SettingsService(ICacheProvider cache)
|
||||
{
|
||||
Cache = cache;
|
||||
}
|
||||
|
||||
public SettingsModel GetSettings()
|
||||
{
|
||||
|
||||
var db = new DbConfiguration(new SqliteFactory());
|
||||
var repo = new GenericRepository<SettingsModel>(db);
|
||||
|
||||
|
@ -77,7 +82,7 @@ namespace PlexRequests.Core
|
|||
var tvApi = new TheTvDbApi();
|
||||
var token = GetAuthToken(tvApi);
|
||||
|
||||
var showInfo = tvApi.GetInformation(providerId, token);
|
||||
var showInfo = tvApi.GetInformation(providerId, token).data;
|
||||
|
||||
DateTime firstAir;
|
||||
DateTime.TryParse(showInfo.firstAired, out firstAir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue