Fully switched the TV shows over to use the other provider.

This commit is contained in:
Jamie Rees 2016-03-03 22:42:58 +00:00
parent 46dc9d95f1
commit 7677831bbc
14 changed files with 231 additions and 30 deletions

View file

@ -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);