diff --git a/src/FormatList.svelte b/src/FormatList.svelte index 5d6f815..4b9eed4 100644 --- a/src/FormatList.svelte +++ b/src/FormatList.svelte @@ -5,7 +5,7 @@
{#each formats as format} - +
@@ -13,7 +13,6 @@

{format.name}

-
{/each}
\ No newline at end of file diff --git a/src/ItemDetail.svelte b/src/ItemDetail.svelte index 73ac89a..570b039 100644 --- a/src/ItemDetail.svelte +++ b/src/ItemDetail.svelte @@ -108,6 +108,7 @@
+ {#if !item.links.includes('video|') && oembed_iframe}
@@ -194,16 +195,15 @@

- - - {#if item.description} -
-

Description

-

{item.description}

-
+ + {#if item.description} +
+

Description

+

{item.description}

+
+ {/if} {/if} - - +
@@ -288,11 +288,71 @@ {/if} - {#if item.links.includes('wiki|')} - - {:else if item.links.includes('video|') && oembed_iframe} - {@html oembed_iframe.replace('width="200"','width="100%"').replace('height="113"','height="400"')} - {/if} +
+ {#if item.links.includes('wiki|')} + + {:else if item.links.includes('video|') && oembed_iframe} + {@html oembed_iframe.replace('width="200"','width="100%"').replace('height="113"','height="400"')} + {/if} + +
+ +
+

{item.name}

+ {item.creators} +
+ +
+
+ + + {#if item.description} +
+

Description

+

{item.description}

+
+ {/if} + +
+
+ {#each item.links.split(";") as type} + + {type.split("|")[0]} at {get_tld(type.split("|")[1])} + {#if type.split("|")[2] || type.split("|")[0] === 'book'} + + + + + + {#if type.split("|")[2] && type.split("|")[2].startsWith('ipfs:')} + Download via IPFS: + Cloudflare + IPFS.io + Infura + Pinata + {/if} + + {#if type.split("|")[2] && type.split("|")[2].startsWith('doi:')} + On SciHub + {/if} + + {#if type.split("|")[0] === 'book'} + + Look up on: + LibGen + OpenLibrary + GoodReads + {/if} + + + {/if} + + {/each} +
+ +
+
+
{:else} diff --git a/src/VideoCard.svelte b/src/VideoCard.svelte index 10ca749..9cd6aa7 100644 --- a/src/VideoCard.svelte +++ b/src/VideoCard.svelte @@ -36,14 +36,14 @@ - -
-