fix: Failed making request to anilist! Try again in a minute. 404-not found #453

This commit is contained in:
ThaUnknown 2024-06-16 23:26:57 +02:00
parent 33f9124cc9
commit a8cd6201ce
3 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@
<div class='material-symbols-outlined filled position-absolute z-10 top-0 right-0 p-15 font-size-22' class:d-none={hide} use:click={toggleMute}>{muted ? 'volume_off' : 'volume_up'}</div>
<!-- for now we use some invidious instance, would be nice to somehow get these links outselves, this redirects straight to some google endpoint -->
<!-- eslint-disable-next-line svelte/valid-compile -->
<video src={`https://yewtu.be/latest_version?id=${media.trailer.id}&itag=18`}
<video src={`https://inv.tux.pizza/latest_version?id=${media.trailer.id}&itag=18`}
class='w-full h-full position-absolute left-0'
class:d-none={hide}
playsinline

View file

@ -227,7 +227,7 @@ class AnilistClient {
} catch (error) {
if (res.ok) printError(error)
}
if (!res.ok) {
if (!res.ok && res.status !== 404) {
if (json) {
for (const error of json?.errors || []) {
printError(error)

View file

@ -55,7 +55,7 @@
<div class='material-symbols-outlined filled position-absolute z-10 top-0 right-0 p-15 font-size-22' class:d-none={hide} use:click={toggleMute}>{muted ? 'volume_off' : 'volume_up'}</div>
<!-- for now we use some invidious instance, would be nice to somehow get these links outselves, this redirects straight to some google endpoint -->
<!-- eslint-disable-next-line svelte/valid-compile -->
<video data-src={`https://yewtu.be/latest_version?id=${media.trailer.id}&itag=18`}
<video data-src={`https://inv.tux.pizza/latest_version?id=${media.trailer.id}&itag=18`}
class='w-full h-full position-absolute left-0'
class:d-none={hide}
playsinline