private static IEnumerable<RemoteImageInfo> GetImages(MazeSeason mazeSeason)
        {
            var result = new List<RemoteImageInfo>();

            if (mazeSeason.image != null && mazeSeason.image.original != null)
            {
                var imageInfo = new RemoteImageInfo
                {
                    Url = mazeSeason.image.original.AbsoluteUri,
                    ProviderName = ProviderName,
                    Language = "en",
                    Type = ImageType.Primary
                };

                result.Add(imageInfo);
            }

            return result;
        }
        public static Season Convert(MazeSeason mazeSeason)
        {
            var season = new Season();

            season.ProviderIds[MetadataProviders.TvMaze.ToString()] = mazeSeason.id.ToString();

            season.Name = mazeSeason.name;

            season.IndexNumber = mazeSeason.number;

            if (mazeSeason.network != null && !string.IsNullOrWhiteSpace(mazeSeason.network.name))
            {
                var networkName = mazeSeason.network.name;
                if (mazeSeason.network.country != null && !string.IsNullOrWhiteSpace(mazeSeason.network.country.code))
                {
                    networkName = string.Format("{0} ({1})", mazeSeason.network.name, mazeSeason.network.country.code);
                }

                season.Studios.Add(networkName);
            }

            if (mazeSeason.premiereDate.HasValue)
            {
                season.PremiereDate = mazeSeason.premiereDate.Value;
                season.ProductionYear = mazeSeason.premiereDate.Value.Year;
            }

            if (mazeSeason.endDate.HasValue)
            {
                season.EndDate = mazeSeason.endDate.Value;
            }

            season.Overview = StripHtml(mazeSeason.summary);

            return season;
        }