public static SearchResults Search(this ITagChimpClient client, string query)
        {
            SearchParameters p = new SearchParameters
            {
                Type  = SearchType.Search,
                Title = query
            };

            return(client.Search(p));
        }
        public static Movie FindById(this ITagChimpClient client, int id)
        {
            SearchParameters p = new SearchParameters
            {
                Id   = id,
                Type = SearchType.Lookup
            };
            var results = client.Search(p);

            return(results.Movies.FirstOrDefault());
        }
        public static SearchResults SearchTelevision(this ITagChimpClient client, string showName, string episodeName, int?season, int?episode)
        {
            SearchParameters p = new SearchParameters
            {
                Type      = SearchType.Search,
                VideoKind = VideoKind.TVShow,
                Title     = episodeName,
                Show      = showName,
                Season    = season,
                Episode   = episode
            };

            return(client.Search(p));
        }
        public static SearchResults SearchTelevisionExact(this ITagChimpClient client, string showName, string episodeName, int?season, int?episode)
        {
            SearchParameters p = new SearchParameters
            {
                //Type = SearchType.Search,
                //VideoKind = VideoKind.TVShow,
                Title   = episodeName,
                Show    = showName,
                Season  = season,
                Episode = episode
            };

            var movies = from m in client.Search(p).Movies
                         where m.MovieTags.TelevisionInfo.ShowName == showName
                         select m;

            return(new SearchResults
            {
                TotalResults = movies.Count(),
                Movies = movies.ToList()
            });
        }