Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit c2ed370

Browse files
committed
Minor fix
1 parent d02a69a commit c2ed370

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

AniAPI.NET.Test/EpisodeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public async void Get_Episode_List()
4444
{
4545
EpisodeFilter filter = new EpisodeFilter()
4646
{
47-
AnimeId = 1,
48-
Source = "gogoanime",
47+
AnimeId = 11,
48+
IsDub = true,
4949
Locale = "en",
5050
Sort = new Dictionary<string, SortDirectionEnum>()
5151
{

AniAPI.NET/AniAPI.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
55
<PackageId>AniAPI.NET</PackageId>
6-
<Version>1.1.1</Version>
6+
<Version>1.1.2</Version>
77
<Authors>Dazorn96</Authors>
88
<Company>AnIAPI</Company>
99
<PackageReleaseNotes>Updated to AniAPI version 1.1.0</PackageReleaseNotes>

AniAPI.NET/Filters/EpisodeFilter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class EpisodeFilter : IFilter
1111
{
1212
public long? AnimeId { get; set; }
1313
public int? Number { get; set; }
14-
public string Source { get; set; }
14+
public bool? IsDub { get; set; }
1515
public string Locale { get; set; }
1616

1717
protected override void FillQueryParameters()
@@ -26,9 +26,9 @@ protected override void FillQueryParameters()
2626
Parameters.Add("number", Number.ToString());
2727
}
2828

29-
if (!string.IsNullOrEmpty(Source))
29+
if (IsDub != null)
3030
{
31-
Parameters.Add("source", Source);
31+
Parameters.Add("is_dub", IsDub.Value ? "true" : "false");
3232
}
3333

3434
if (!string.IsNullOrEmpty(Locale))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Build badge](https://img.shields.io/badge/build-passing-green)](#)
2-
[![Nuget badge](https://img.shields.io/badge/nuget-v1.1.1-blue)](https://www.nuget.org/packages/AniAPI.NET/1.1.1)
2+
[![Nuget badge](https://img.shields.io/badge/nuget-v1.1.2-blue)](https://www.nuget.org/packages/AniAPI.NET/1.1.2)
33

44
# AniAPI.NET
55

0 commit comments

Comments
 (0)