diff --git a/discord_embed/api/serve.mjs b/discord_embed/api/serve.mjs index e7b406b..0f02d92 100644 --- a/discord_embed/api/serve.mjs +++ b/discord_embed/api/serve.mjs @@ -38,7 +38,7 @@ export default class ServeHandler extends Parent { let res = await ctx.db.safeCallProc('discord_embed.link_get', [id - 3843]) if (res.first.length) { videoLink = ctx.state.video = res.first[0].video_link - if (!ctx.state.video.startsWith('https://cdn.discordapp.com')) { + if (!ctx.state.video.startsWith('https://cdn.discordapp.com') && !ctx.state.video.includes('catbox.')) { videoLink = this.frontend + '/video/' + ctx.url.slice(1) + '.webm' } imageLink = res.first[0].image_link diff --git a/discord_embed/package.json b/discord_embed/package.json index ab1bbfb..17100d3 100644 --- a/discord_embed/package.json +++ b/discord_embed/package.json @@ -1,6 +1,6 @@ { "name": "discord_embed", - "version": "1.0.11", + "version": "1.0.12", "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 c6db4a5..64161f9 100644 --- a/discord_embed/public/index.html +++ b/discord_embed/public/index.html @@ -2,7 +2,7 @@ - Discord Embedder from AV1 server 1.0.11 + Discord Embedder from AV1 server 1.0.12 {{ if (imageLink) { }}