Skip to content

Commit 5e58c89

Browse files
fix(aniworld): fetch popular series from homepage
Changed popular series fetch to use the homepage (BaseUrl) instead of the removed "/beliebte-serien" subpage.
1 parent 47816cf commit 5e58c89

File tree

7 files changed

+5
-17
lines changed

7 files changed

+5
-17
lines changed

AniWorldReminder_API/Models/DownloaderPreferencesModel.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-

2-
using System.Text.Json.Serialization;
3-
4-
namespace AniWorldReminder_API.Models
1+
namespace AniWorldReminder_API.Models
52
{
63
public class DownloaderPreferencesModel
74
{

AniWorldReminder_API/Services/AniWorldService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
using HtmlAgilityPack;
2-
using System.Net;
32
using System.Text;
43
using System.Text.Json;
54
using System.Text.RegularExpressions;
65

76
namespace AniWorldReminder_API.Services
87
{
98
public class AniWorldService : StreamingPortalServiceBase<AniWorldService>
10-
{
11-
private const string PopularSeriesUrl = "/beliebte-serien";
9+
{
1210
private const string PopularHtmlSearchQuery = "//div[@class='preview rows sevenCols']/div[@class='coverListItem']/a";
1311
private const string DescriptionNodeQuery = "seri_des";
1412
private const string TitleNodeQuery = "//div[@class='series-title']/h1/span";
@@ -29,7 +27,7 @@ public AniWorldService(
2927
if (!reachable)
3028
return null;
3129

32-
HttpResponseMessage response = await HttpClient.GetAsync(new Uri($"{BaseUrl}{PopularSeriesUrl}"));
30+
HttpResponseMessage response = await HttpClient.GetAsync(new Uri(BaseUrl));
3331

3432
if (!response.IsSuccessStatusCode)
3533
return null;

AniWorldReminder_API/Services/MegaKinoService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using HtmlAgilityPack;
2-
using System;
32
using System.Net;
43
using System.Text;
54

AniWorldReminder_API/Services/STOService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using HtmlAgilityPack;
2-
using System.Net;
32
using System.Text.RegularExpressions;
43

54
namespace AniWorldReminder_API.Services

AniWorldReminder_API/Services/StreamingPortalServiceBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using HtmlAgilityPack;
22
using System.Net;
3-
using System.Net.Http.Json;
43
using System.Text;
54

65
namespace AniWorldReminder_API.Services

AniWorldReminder_API/Services/TMDBService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-

2-
using Microsoft.AspNetCore.Components;
3-
using System.Net.Http.Headers;
1+
using System.Net.Http.Headers;
42
using System.Net;
53
using System.Text;
64
using Microsoft.AspNetCore.WebUtilities;

AniWorldReminder_API/Services/TelegramBotService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.IO;
2-
using System.Text;
3-
using Telegram.Bot;
1+
using Telegram.Bot;
42
using Telegram.Bot.Types;
53
using Telegram.Bot.Types.Enums;
64
using Telegram.Bot.Types.ReplyMarkups;

0 commit comments

Comments
 (0)