Esempio n. 1
0
 private static void SearchShow(TVDB tvdb)
 {
     Console.WriteLine("Search for Battlestar Galactica on tvdb");
     var searchResults = tvdb.Search("Battlestar Galactica");
     DisplaySearchResult.Print(searchResults);
     Console.WriteLine("-----------");
 }
Esempio n. 2
0
        public DisplaySearchResult()
        {
            var apikey = ConfigurationManager.AppSettings["apikey"]; // Your own API key
            var series = "Battlestar Galactica";

            var tvdb = new TVDB(apikey);
            var result = tvdb.Search(series, 3);

            foreach (var show in result) {
                Console.WriteLine("{0}:\t{1}", show.Name, show.ID);
            }

            Console.ReadKey();
        }
Esempio n. 3
0
 private void worker_DoWork(object sender, DoWorkEventArgs e)
 {
     var tvdb = new TVDB("8DE2C125BD9D143E");
     _results = tvdb.Search(Path.GetFileName(SelectedFolder), 15);
 }