diff --git a/discord_embed/api/serve.mjs b/discord_embed/api/serve.mjs index 7b646e2..b160e42 100644 --- a/discord_embed/api/serve.mjs +++ b/discord_embed/api/serve.mjs @@ -37,7 +37,8 @@ export default class ServeHandler extends Parent { if (id) { let res = await ctx.db.safeCallProc('discord_embed.link_get', [id - 3843]) if (res.first.length) { - videoLink = res.first[0].video_link + ctx.state.video = res.first[0].video_link + videoLink = this.frontend + '/video/' + ctx.url.slice(1) + '.webm' imageLink = res.first[0].image_link } else { ctx.status = 404 diff --git a/discord_embed/package.json b/discord_embed/package.json index c719ba4..049d330 100644 --- a/discord_embed/package.json +++ b/discord_embed/package.json @@ -1,6 +1,6 @@ { "name": "discord_embed", - "version": "1.0.8", + "version": "1.0.9", "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 e68a5b3..3fa1819 100644 --- a/discord_embed/public/index.html +++ b/discord_embed/public/index.html @@ -2,7 +2,7 @@ - Discord Embedder from AV1 server 1.0.8 + Discord Embedder from AV1 server 1.0.9 {{ if (imageLink) { }}