hide DMCAd manga

This commit is contained in:
Daniel Bulant 2021-06-09 14:41:35 +02:00
parent 18b48f2b69
commit 2f8043ae88

View file

@ -10,14 +10,26 @@
var mangaData = getManga(manga); var mangaData = getManga(manga);
$: mangaData = getManga(manga); $: mangaData = getManga(manga);
console.log(mangaData); console.log(mangaData);
const blocked = ["227e3f72-863f-46f9-bafe-c43104ca29ee"];
</script> </script>
{#await mangaData} {#if blocked.includes(manga)}
loading... <h1>
{:then manga} Content blocked.
{#if manga} </h1>
<slot scoped={({ manga: manga.data.attributes, mangaRelationships: manga.relationships, id: manga.data.id })} />
{:else} I'm sorry, but I received a DMCA take down for this manga, so just to be safe I disabled it. Content might be available directly on <a href="https://mangadex.org">Mangadex</a> which I'm embedding it from (so in my good faith, I don't think I'm breaking copyright).
Manga not found.
{/if} I don't host any of the content shown in this page.
{/await} {:else}
{#await mangaData}
loading...
{:then manga}
{#if manga}
<slot scoped={({ manga: manga.data.attributes, mangaRelationships: manga.relationships, id: manga.data.id })} />
{:else}
Manga not found.
{/if}
{/await}
{/if}