diff --git a/TMDbLib/Client/TMDbClientCollections.cs b/TMDbLib/Client/TMDbClientCollections.cs index b5932b0..be3268a 100644 --- a/TMDbLib/Client/TMDbClientCollections.cs +++ b/TMDbLib/Client/TMDbClientCollections.cs @@ -14,10 +14,10 @@ namespace TMDbLib.Client { public async Task GetCollectionAsync(int collectionId, CollectionMethods extraMethods = CollectionMethods.Undefined, CancellationToken cancellationToken = default(CancellationToken)) { - return await GetCollectionAsync(collectionId, DefaultLanguage, extraMethods, cancellationToken).ConfigureAwait(false); + return await GetCollectionAsync(collectionId, DefaultLanguage, null, extraMethods, cancellationToken).ConfigureAwait(false); } - public async Task GetCollectionAsync(int collectionId, string language, CollectionMethods extraMethods = CollectionMethods.Undefined, CancellationToken cancellationToken = default(CancellationToken)) + public async Task GetCollectionAsync(int collectionId, string language, string includeImageLanguages, CollectionMethods extraMethods = CollectionMethods.Undefined, CancellationToken cancellationToken = default(CancellationToken)) { RestRequest req = _client.Create("collection/{collectionId}"); req.AddUrlSegment("collectionId", collectionId.ToString()); @@ -26,6 +26,10 @@ namespace TMDbLib.Client if (!string.IsNullOrWhiteSpace(language)) req.AddParameter("language", language); + includeImageLanguages = includeImageLanguages ?? DefaultImageLanguage; + if (!string.IsNullOrWhiteSpace(includeImageLanguages)) + req.AddParameter("include_image_language", includeImageLanguages); + string appends = string.Join(",", Enum.GetValues(typeof(CollectionMethods)) .OfType()