private void cmdInit_Click(object sender, EventArgs e) { m_tvdbHandler = new TvdbHandler(new XmlCacheProvider("C:\\test"), Resources.API_KEY); m_series = m_tvdbHandler.GetBasicSeries(80370, TvdbLanguage.DefaultLanguage, true); int count = 0; fanartControl1.NumberOfImages = m_series.FanartBanners.Count; foreach (TvdbFanartBanner fb in m_series.FanartBanners) { if(fb.IsThumbLoaded || fb.LoadThumb()) { fanartControl1.SetImage(fb, count); count++; } } }
private TvdbSeries LookupShow(string name) { Reporting.Log("Looking up show: " + name); TvdbHandler handler = new TvdbHandler(TvdbApiKey); List<TvdbSearchResult> results = handler.SearchSeries(name); TvdbSearchResult first = results.First(); return handler.GetBasicSeries(first.Id, TvdbLanguage.DefaultLanguage, true); }