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

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DazornSama committed Feb 7, 2022
1 parent d02a69a commit c2ed370
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions AniAPI.NET.Test/EpisodeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, SortDirectionEnum>()
{
Expand Down
2 changes: 1 addition & 1 deletion AniAPI.NET/AniAPI.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<PackageId>AniAPI.NET</PackageId>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
<Authors>Dazorn96</Authors>
<Company>AnIAPI</Company>
<PackageReleaseNotes>Updated to AniAPI version 1.1.0</PackageReleaseNotes>
Expand Down
6 changes: 3 additions & 3 deletions AniAPI.NET/Filters/EpisodeFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit c2ed370

Please sign in to comment.