diff --git a/discord_embed/api/serve.mjs b/discord_embed/api/serve.mjs index 41fd86d..6cb514d 100644 --- a/discord_embed/api/serve.mjs +++ b/discord_embed/api/serve.mjs @@ -20,7 +20,7 @@ export default class ServeHandler extends Parent { 'in_debug', 'inputVideo', 'inputImage' - ] }) + ], strip: false }) } register(server) { diff --git a/discord_embed/package.json b/discord_embed/package.json index 497f516..fe32091 100644 --- a/discord_embed/package.json +++ b/discord_embed/package.json @@ -1,6 +1,6 @@ { "name": "discord_embed", - "version": "1.0.21", + "version": "1.0.22", "port": 4120, "description": "AV1 discord server embed helper", "main": "index.js", diff --git a/discord_embed/public/index.html b/discord_embed/public/index.html index 373db12..e86a538 100644 --- a/discord_embed/public/index.html +++ b/discord_embed/public/index.html @@ -2,7 +2,7 @@ - Discord Embedder from AV1 server 1.0.18 + Discord Embedder from AV1 server 1.0.22 {{ if (imageLink) { }} @@ -47,7 +47,7 @@ body { text-rendering: optimizeSpeed; line-height: 1.5; font-size: 16px; - padding: 1rem 0.5rem; + padding: 1rem 0.5rem 3rem; font-family: sans-serif; background: var(--bg); color: var(--color); @@ -117,14 +117,7 @@ input[type=submit] { background: var(--button-bg); color: var(--button-fg); padding: 0.25rem 1rem; - margin: 1rem 0 2rem; -} - -pre { - background: var(--bg-content-alt); - padding: 0.5rem; - white-space: break-spaces; - word-break: break-all; + margin: 0rem 0 2rem; } .row { @@ -174,6 +167,10 @@ h1 { margin-bottom: 1rem; } +p { + margin-bottom: 0.5rem; +} + .warning { font-size: 0.9rem; color: #ffe69c; @@ -182,8 +179,8 @@ h1 { .alert { font-size: 0.9rem; - color: #f1aeb5; - margin-bottom: 0.5rem; + margin: 0.5rem 0 1rem; + color: hsl(353.7, 70.5%, 87%); } .info { @@ -196,16 +193,28 @@ h1 { text-decoration: underline; } -.row.optional { - background: #333; - margin: 1rem -0.5rem 0; +.optional { + margin: 0 -0.5rem 0.5rem; padding: 0rem 0.5rem 1rem; + background: var(--bg-content-alt); +} + +#testing { + display: flex; + flex-direction: column; + align-items: stretch; } .hidden { display: none; } +pre { + padding: 0.5rem !important; + white-space: break-spaces; + word-break: break-all; +} + #previewVideo { border: 1px solid white; } @@ -223,43 +232,52 @@ h1 { {{ } }}
-

Create/generate embed url

-

Please don't try to use youtube.com links or file sharing sites that don't allow direct link to the video. They will show a download page and won't embed properly (for example mediafire.com, megaupload, drive.google.com, etc.)
Those will all not work. (You can test if embedding works by clicking play below in the video player after filling out the video link.)

-

Video upload sites that work are sites like catbox.moe and other sites that allow direct link to video file.

-

HEVC/h.265 files will not embed or work!

-

Video files of .mkv will also not work! Only files like *.mov, *.mp4 and *.webm will work.

+

Embed {{ if (videoLink && imageLink) { }} another {{ } }} video for discord:

+

Use this tool to generate links that forces discord to try and play a video or movie directly inside discord. By default, discord will not show video playback for video links that are too large or not in proper format. This tool forces discord to at least try.

+ +

Only sites and filesharing sites that have direct link to the video will work and play in discord. Youtube has it's own player and will not work. Many video sites will have their own player and will not work.

+ +

Video upload sites that work are sites like catbox.moe and other sites that allow direct link to video file will work.

+ {{ if (error) { }}

{{=error}}

{{ } }} - +

+ +

+ .mkv video files will not work! HEVC/h.265 will also not work! File hosting sites like mediafire/dropbox/google drive will also not work!
+

- +
or
- - + +
- - + +
-

- Preview: -

-
-    {{=siteUrlBase}}?v=<video link>
-  
- - -