IMDBMovie movie = new IMDBMovie("tt1375666"); string title = movie.Title; string genre = movie.Genre; int year = movie.Year;
IMDBMovieSearch search = new IMDBMovieSearch(); ListThis code example shows how to search for movies by title using IMDBMovieSearch object. We pass the movie title ("The Dark Knight") to the Search method to retrieve a list of IMDBMovie objects. We then iterate through the results and print the movie title and year. The package library used here is MediaPortal.Video.Database.results = search.Search("The Dark Knight"); foreach (IMDBMovie result in results) { Console.WriteLine(result.Title + " (" + result.Year + ")"); }