diff --git a/TMDbLib/Client/TMDbClient.cs b/TMDbLib/Client/TMDbClient.cs index fa45c87c..fc2e7183 100644 --- a/TMDbLib/Client/TMDbClient.cs +++ b/TMDbLib/Client/TMDbClient.cs @@ -169,7 +169,13 @@ public Uri GetImageUrl(string size, string filePath, bool useSsl = false) return new Uri(baseUrl + size + filePath); } - public async Task GetImageBytes(string size, string filePath, bool useSsl = false, CancellationToken token = default) + [Obsolete("Use " + nameof(GetImageBytesAsync))] + public Task GetImageBytes(string size, string filePath, bool useSsl = false, CancellationToken token = default) + { + return GetImageBytesAsync(size, filePath, useSsl, token); + } + + public async Task GetImageBytesAsync(string size, string filePath, bool useSsl = false, CancellationToken token = default) { Uri url = GetImageUrl(size, filePath, useSsl); diff --git a/TestApplication/Program.cs b/TestApplication/Program.cs index f7d289d5..b72cfe87 100644 --- a/TestApplication/Program.cs +++ b/TestApplication/Program.cs @@ -123,7 +123,7 @@ private static async Task ProcessImages(TMDbClient client, IEnumerable