diff --git a/AniAPI.NET.Test/EpisodeTest.cs b/AniAPI.NET.Test/EpisodeTest.cs index d0e9bf1..49b6310 100644 --- a/AniAPI.NET.Test/EpisodeTest.cs +++ b/AniAPI.NET.Test/EpisodeTest.cs @@ -44,8 +44,8 @@ public async void Get_Episode_List() { EpisodeFilter filter = new EpisodeFilter() { - AnimeId = 1, - Source = "gogoanime", + AnimeId = 11, + IsDub = true, Locale = "en", Sort = new Dictionary() { diff --git a/AniAPI.NET/AniAPI.NET.csproj b/AniAPI.NET/AniAPI.NET.csproj index 37ceffb..64edbcc 100644 --- a/AniAPI.NET/AniAPI.NET.csproj +++ b/AniAPI.NET/AniAPI.NET.csproj @@ -3,7 +3,7 @@ net5.0 AniAPI.NET - 1.1.1 + 1.1.2 Dazorn96 AnIAPI Updated to AniAPI version 1.1.0 diff --git a/AniAPI.NET/Filters/EpisodeFilter.cs b/AniAPI.NET/Filters/EpisodeFilter.cs index f0b4d3e..a9db72a 100644 --- a/AniAPI.NET/Filters/EpisodeFilter.cs +++ b/AniAPI.NET/Filters/EpisodeFilter.cs @@ -11,7 +11,7 @@ public class EpisodeFilter : IFilter { public long? AnimeId { get; set; } public int? Number { get; set; } - public string Source { get; set; } + public bool? IsDub { get; set; } public string Locale { get; set; } protected override void FillQueryParameters() @@ -26,9 +26,9 @@ protected override void FillQueryParameters() Parameters.Add("number", Number.ToString()); } - if (!string.IsNullOrEmpty(Source)) + if (IsDub != null) { - Parameters.Add("source", Source); + Parameters.Add("is_dub", IsDub.Value ? "true" : "false"); } if (!string.IsNullOrEmpty(Locale)) diff --git a/README.md b/README.md index c32306b..e893285 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Build badge](https://img.shields.io/badge/build-passing-green)](#) -[![Nuget badge](https://img.shields.io/badge/nuget-v1.1.1-blue)](https://www.nuget.org/packages/AniAPI.NET/1.1.1) +[![Nuget badge](https://img.shields.io/badge/nuget-v1.1.2-blue)](https://www.nuget.org/packages/AniAPI.NET/1.1.2) # AniAPI.NET