Skip to content

Commit 638c8ed

Browse files
committed
Remove legacy anime providers and related code
Removed Aniwatch, Gogoanime, HiAnime, NineAnime, and OtakuDesu providers, their tests, and API controllers. Updated demo apps and database context to exclude these providers. Switched AnimeController to use AnimeGG. Cleaned up models and added Spectre.Console to demos.
1 parent 6f66e3d commit 638c8ed

24 files changed

Lines changed: 1550 additions & 3321 deletions

Juro.Core/Models/Anime/Indonesian/OtakuDesu/OtakuDesuAnimeInfo.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

Juro.DataBuilder/JuroContext.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ public class JuroContext : DbContext
99

1010
public DbSet<AnimeSeason> AnimeSeasons { get; set; }
1111

12-
public DbSet<AnimeModel> Gogoanime { get; set; }
13-
1412
public DbSet<AnimeModel> AnimePahe { get; set; }
1513

1614
public DbSet<AnimeModel> Kaido { get; set; }
1715

1816
public DbSet<AnimeModel> Aniwave { get; set; }
1917

20-
public DbSet<AnimeModel> OtakuDesu { get; set; }
21-
2218
public string DbPath { get; }
2319

2420
public JuroContext()

Juro.DataBuilder/Program.cs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Juro.Core.Utils.Tasks;
66
using Juro.DataBuilder.Models;
77
using Juro.Providers.Anime;
8-
using Juro.Providers.Anime.Indonesian;
98
using Microsoft.EntityFrameworkCore;
109
using Spectre.Console;
1110

@@ -52,11 +51,6 @@ static async Task Main()
5251

5352
var animes = await db.AnimeItems.ToListAsync();
5453

55-
//var test1 = animes.Where(x => x.GogoanimeId is null).ToList();
56-
//var test2 = animes.Where(x => x.GogoanimeId is null && x.AnimePaheId is null).ToList();
57-
//
58-
//var test3 = animes.Where(x => x.GogoanimeId is not null).ToList();
59-
6054
//foreach (var item in root.Data)
6155
//{
6256
// await TryLinkAnimeToProviderAsync(item);
@@ -108,13 +102,7 @@ await downloader.DownloadAsync(
108102

109103
private static async Task TrySetProvidersForAnimeAsync(ManamiAnimeItem anime)
110104
{
111-
var result = await TryFindBestAnime(Providers.Gogoanime, anime);
112-
if (result is not null)
113-
{
114-
anime.GogoanimeId = result.Id;
115-
}
116-
117-
result = await TryFindBestAnime(Providers.AnimePahe, anime);
105+
var result = await TryFindBestAnime(Providers.AnimePahe, anime);
118106
if (result is not null)
119107
{
120108
anime.AnimePaheId = result.Id;
@@ -132,11 +120,6 @@ private static async Task TrySetProvidersForAnimeAsync(ManamiAnimeItem anime)
132120
// anime.AniwaveId = result.Id;
133121
//}
134122
//
135-
//result = await TryFindBestAnime(Providers.OtakuDesu, anime);
136-
//if (result is not null)
137-
//{
138-
// anime.OtakuDesuId = result.Id;
139-
//}
140123
}
141124

142125
private static async Task<IAnimeInfo?> TryFindBestAnime(
@@ -170,11 +153,7 @@ ManamiAnimeItem entity
170153

171154
public static class Providers
172155
{
173-
#pragma warning disable CS0618
174-
public static Gogoanime Gogoanime { get; set; } = new();
175-
#pragma warning restore CS0618
176156
public static AnimePahe AnimePahe { get; set; } = new();
177157
public static Kaido Kaido { get; set; } = new();
178158
public static Aniwave Aniwave { get; set; } = new();
179-
public static OtakuDesu OtakuDesu { get; set; } = new();
180159
}

Juro.Demo.Cli2/Juro.Demo.Cli2.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<ItemGroup>
88
<PackageReference Include="CSharpier.MsBuild" Version="1.2.6" PrivateAssets="all" />
99
<PackageReference Include="Httpz" Version="1.1.7" />
10+
<PackageReference Include="Spectre.Console" Version="0.54.0" />
1011
</ItemGroup>
1112
<ItemGroup>
1213
<ProjectReference Include="..\Juro\Juro.csproj" />

0 commit comments

Comments
 (0)