You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Core/Providers/TvDbProvider.cs

33 lines
848 B

14 years ago
using System.Collections.Generic;
using System.IO;
using TvdbLib;
using TvdbLib.Cache;
using TvdbLib.Data;
namespace NzbDrone.Core.Providers
14 years ago
{
public class TvDbProvider : ITvDbProvider
14 years ago
{
private const string TVDB_APIKEY = "5D2D188E86E07F4F";
14 years ago
private readonly TvdbHandler _handler;
public TvDbProvider()
14 years ago
{
_handler = new TvdbHandler(new XmlCacheProvider(Path.Combine(Main.AppPath, @"cache\tvdbcache.xml")), TVDB_APIKEY);
14 years ago
}
#region ITvDbProvider Members
14 years ago
public IList<TvdbSearchResult> SearchSeries(string name)
14 years ago
{
return _handler.SearchSeries(name);
}
public TvdbSeries GetSeries(int id, TvdbLanguage language)
{
return _handler.GetSeries(id, language, true, false, false);
}
#endregion
}
}