File tree Expand file tree Collapse file tree 7 files changed +5
-17
lines changed
Expand file tree Collapse file tree 7 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 1-
2- using System . Text . Json . Serialization ;
3-
4- namespace AniWorldReminder_API . Models
1+ namespace AniWorldReminder_API . Models
52{
63 public class DownloaderPreferencesModel
74 {
Original file line number Diff line number Diff line change 11using HtmlAgilityPack ;
2- using System . Net ;
32using System . Text ;
43using System . Text . Json ;
54using System . Text . RegularExpressions ;
65
76namespace 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 ;
Original file line number Diff line number Diff line change 11using HtmlAgilityPack ;
2- using System ;
32using System . Net ;
43using System . Text ;
54
Original file line number Diff line number Diff line change 11using HtmlAgilityPack ;
2- using System . Net ;
32using System . Text . RegularExpressions ;
43
54namespace AniWorldReminder_API . Services
Original file line number Diff line number Diff line change 11using HtmlAgilityPack ;
22using System . Net ;
3- using System . Net . Http . Json ;
43using System . Text ;
54
65namespace AniWorldReminder_API . Services
Original file line number Diff line number Diff line change 1-
2- using Microsoft . AspNetCore . Components ;
3- using System . Net . Http . Headers ;
1+ using System . Net . Http . Headers ;
42using System . Net ;
53using System . Text ;
64using Microsoft . AspNetCore . WebUtilities ;
Original file line number Diff line number Diff line change 1- using System . IO ;
2- using System . Text ;
3- using Telegram . Bot ;
1+ using Telegram . Bot ;
42using Telegram . Bot . Types ;
53using Telegram . Bot . Types . Enums ;
64using Telegram . Bot . Types . ReplyMarkups ;
You can’t perform that action at this time.
0 commit comments