mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Renamed all Core.Controllers to Core.Providers to avoid confusion between Core Controllers and MVC controllers
This commit is contained in:
parent
9515c8788a
commit
01c1943d0e
24 changed files with 125 additions and 152 deletions
|
@ -1,33 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using TvdbLib;
|
||||
using TvdbLib.Cache;
|
||||
using TvdbLib.Data;
|
||||
|
||||
namespace NzbDrone.Core.Controllers
|
||||
{
|
||||
public class TvDbController : ITvDbController
|
||||
{
|
||||
private const string TvDbApiKey = "5D2D188E86E07F4F";
|
||||
private readonly TvdbHandler _handler;
|
||||
|
||||
public TvDbController()
|
||||
{
|
||||
_handler = new TvdbHandler(new XmlCacheProvider(Path.Combine(Main.AppPath, @"cache\tvdbcache.xml")), TvDbApiKey);
|
||||
}
|
||||
|
||||
#region ITvDbController Members
|
||||
|
||||
public IList<TvdbSearchResult> SearchSeries(string name)
|
||||
{
|
||||
return _handler.SearchSeries(name);
|
||||
}
|
||||
|
||||
public TvdbSeries GetSeries(int id, TvdbLanguage language)
|
||||
{
|
||||
return _handler.GetSeries(id, language, true, false, false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue