1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00
Radarr/NzbDrone.Core/Controllers/TvDbController.cs
2010-09-22 20:19:47 -07:00

33 lines
850 B
C#

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, @"\tvdbcache.xml")), TvDbApiKey);
}
#region ITvDbController Members
public List<TvdbSearchResult> SearchSeries(string name)
{
return _handler.SearchSeries(name);
}
public TvdbSeries GetSeries(int id, TvdbLanguage language)
{
return _handler.GetSeries(id, language, true, false, false);
}
#endregion
}
}