Fixed IInitializable registration

I tried to make it all happen in the same method as AutoRegisterImplementations, but it caused issues with BasicRepo.
This commit is contained in:
Mark McDowall 2013-04-05 18:03:14 -07:00
commit 9ae21cf7a1
4 changed files with 22 additions and 7 deletions

View file

@ -21,7 +21,6 @@ namespace NzbDrone.Core.MetadataSource
return response.Data.Select(MapSeries).ToList();
}
public Series GetSeriesInfo(int tvDbSeriesId)
{
var client = BuildClient("show", "summary");
@ -40,7 +39,6 @@ namespace NzbDrone.Core.MetadataSource
return response.Data.seasons.SelectMany(c => c.episodes).Select(MapEpisode).ToList();
}
private static IRestClient BuildClient(string resource, string method)
{
return new RestClient(string.Format("http://api.trakt.tv/{0}/{1}.json/6fc98f83c6a02decd17eb7e13d00e89c", resource, method));