API Returning Error
Is this API not working anymore? I tried the API just yesterday and this is the error that i get... thought that it is not pointing to the right website, but apparently it is
Errors:
Exception:
System.Net.Http.HttpRequestException: 'HTTP request failed. StatusCode: NotFound.'
Inner Exception:
System.Exception: '<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>404 - Seite nicht gefunden</title>
<link href="/public/css/main.min.css?version=1" rel="stylesheet"/>
<link href="/public/css/main.dark.min.css?version=1" rel="stylesheet"/>
<script type="text/javascript" src="/public/js/jquery.min.js?version=15"></script>
<script type="text/javascript" src="/public/js/jquery-ui.min.js?version=15"></script>
</head>
<body>
<h3 style="text-align: center; color: white; font-size: 32px; margin: 50px;">404 - Seite nicht gefunden</h3>
<div style="text-align: center; font-size: 20px;"><a href="https://aniworld.to">zur AniWorld Startseite</a></div>
<div style="text-align: center; font-size: 20px; margin-top: 20px"><a href="https://aniworld.to/animes">zu den Animes</a></div>
</body>
</html>'
[Edit] This is my Code that i forgot
SerienStreamClient client = new(hostUrl: "https://aniworld.to/", site: "anime", ignoreCertificiateValidation: false, logger: null);
Series series = await client.GetSeriesAsync("My Dress-Up Darling");
sToOuput.Text = "Title: " + series.Title + "\nDescription: " + series.Description + "\nSeasons: " + series.SeasonsCount;
Hi, if you're using aniworld (which uses the old site-design) please downgrade to version 1.0.4.
But this one does work with SerienStream.to?
Yeah, s.to switched to a new frontend design some time ago which broke the HTML parsing of this library. My thoughts were that aniworld would switch soon too, thus I haven't added legacy support - but it's been already a few months and they still use the old design. Perhaps I should refactor a little bit..
Yes maybe add legacy support to the current build
Yeah, definitely a consideration. For now, please use the older version - there are only some minor changes besides the new layout.