Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4 #49

Draft
wants to merge 56 commits into
base: master
Choose a base branch
from
Draft

V4 #49

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
c9e4c8c
Remove unwanted code
Xwilarg Dec 6, 2022
2c44014
Comment code that isn't working
Xwilarg Dec 7, 2022
f75e1a8
Fix errors
Xwilarg Dec 7, 2022
f4176c9
Fix license
Xwilarg Dec 7, 2022
640bd69
Add danbooru post parsing
Xwilarg Dec 7, 2022
667118f
Add IBooru
Xwilarg Dec 7, 2022
a53b808
Add post parsing
Xwilarg Dec 7, 2022
39b1c77
Fix Rule34 search
Xwilarg Dec 7, 2022
ba8d481
Fix unit tests
Xwilarg Dec 7, 2022
f9d8161
Add BooruOnRails parsing
Xwilarg Dec 7, 2022
7ea5703
Add E621 parsing
Xwilarg Dec 7, 2022
18a6c28
Implement remaining boorus
Xwilarg Dec 7, 2022
58c583b
Fix JSON deserialization
Xwilarg Dec 7, 2022
9f28af3
Fix search not working for Gelboory*
Xwilarg Dec 7, 2022
2cc1103
Fix more post issues
Xwilarg Dec 7, 2022
b474c39
Fix Safebooru crash
Xwilarg Dec 7, 2022
63615a9
Fix crash
Xwilarg Dec 7, 2022
eaa4d5b
Rework code structure
Xwilarg Dec 7, 2022
4edd3a3
Clean dupplicate code
Xwilarg Dec 8, 2022
4049526
Fix rule34
Xwilarg Dec 8, 2022
95884bc
Fix unit tests
Xwilarg Dec 8, 2022
905492d
Remove unused usings
Xwilarg Dec 8, 2022
bfb3988
Remove unused code
Xwilarg Dec 8, 2022
f933564
Improve unit tests
Xwilarg Dec 10, 2022
532149c
Fix bugs
Xwilarg Dec 10, 2022
a45c32d
Fix unit tests failures
Xwilarg Dec 10, 2022
1681842
Fix more unit tests
Xwilarg Dec 10, 2022
ac9a980
Fix more unit tests
Xwilarg Dec 10, 2022
73f9bd6
Fix more unit tests
Xwilarg Dec 10, 2022
1bb610f
Improve unit tests
Xwilarg Dec 10, 2022
2e4a30f
Add more unit tests
Xwilarg Dec 10, 2022
aae1558
Remove Furrybooru
Xwilarg Dec 10, 2022
d2f963b
Improve unit tests
Xwilarg Dec 10, 2022
31f3312
Add more unit tests
Xwilarg Dec 10, 2022
9b46f1c
Skip 503 errors in unit tests
Xwilarg Dec 10, 2022
81c5961
Fix crash on random posts
Xwilarg Dec 11, 2022
3e48f53
Fix CI
Xwilarg Jan 3, 2023
4df822a
Comment Pixiv code
Xwilarg Jan 3, 2023
11b15d4
Fix Gelbooru crash
Xwilarg Jan 10, 2023
2e73151
Fix CI and package settings
Xwilarg Jan 10, 2023
feecee3
Add max number of tags
Xwilarg Jan 11, 2023
e613e1f
Implement tags by ID
Xwilarg Jan 11, 2023
964fcee
Fix unit tests for rating check
Xwilarg Jan 11, 2023
99725ea
Fix unit tests
Xwilarg Jan 11, 2023
1519027
Fix more unit tests
Xwilarg Apr 12, 2023
cd614a9
Fix crash
Xwilarg Apr 12, 2023
6129e13
Fix crash for multiple image search
Xwilarg Apr 12, 2023
6399db1
Improve debug
Xwilarg Apr 12, 2023
a62116d
Fix more crashes
Xwilarg Apr 12, 2023
cbd5027
Fix crashes
Xwilarg Apr 12, 2023
c94a69e
Fix crash
Xwilarg Apr 12, 2023
835e090
Fix crash
Xwilarg Apr 12, 2023
34f5c8f
Fix tests
Xwilarg Apr 13, 2023
4f13e5f
Rename exception
Xwilarg Aug 21, 2023
5f00912
Fix posts not being found
Xwilarg Aug 21, 2023
9e78401
Begin to convert tag count endpoint
Xwilarg Aug 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 7.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
- name: Install dependencies
Expand Down
5 changes: 2 additions & 3 deletions BooruSharp.Others/BooruSharp.Others.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.2.1</Version>
<Version>3.0.0</Version>
<Authors>Xwilarg</Authors>
<Company>Xwilarg</Company>
<Description>Extension of BooruSharp to handle non-booru websites and handle them like the others</Description>
Expand All @@ -23,7 +23,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<ProjectReference Include="..\BooruSharp\BooruSharp.csproj" />
</ItemGroup>

Expand Down
5 changes: 2 additions & 3 deletions BooruSharp.Others/Pixiv.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using BooruSharp.Booru;
using BooruSharp.Search;
using BooruSharp.Search.Post;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -11,7 +9,7 @@
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

/*
namespace BooruSharp.Others
{
/// <summary>
Expand Down Expand Up @@ -451,3 +449,4 @@ private static void AddUserAgentHeader(HttpRequestMessage request)
private readonly string _hashSecret = "28c1fdd170a5204386cb1313c7077b34f83e4aaf4aa829ce78c231e05b0bae2c";
}
}
*/
19 changes: 11 additions & 8 deletions BooruSharp.UnitTests/BooruSharp.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

Expand All @@ -11,18 +11,21 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="1.3.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
<ProjectReference Include="..\BooruSharp.Others\BooruSharp.Others.csproj" />
<ProjectReference Include="..\BooruSharp\BooruSharp.csproj" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PackageReference Include="Microsoft.TestPlatform.TestHost" Version="17.4.1" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BooruSharp\BooruSharp.csproj" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions BooruSharp.UnitTests/BooruTestData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace BooruSharp.UnitTests
{
public record BooruTestData
{
public required Type BooruType;
public required string[] Tags;
public required int ValidPostId;
public required string ExplicitTag;
}
}
Loading