From eb9f1376b88dd0206f6910bda05f1b3e731a1f7a Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 18 Jan 2024 02:16:55 +0200 Subject: [PATCH] fix video download url --- src/discordbot/discordbot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index be9bd66..53f91ef 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -143,7 +143,6 @@ async def query_database(): rechead = {} video_url = f'https://{scheduler_hostname}/video/{video_filename}' thumb_url = f'https://{scheduler_hostname}/thumb/{thumb_filename}' - offline_msg = f'Live stream is now offline. [Download VoD recording]({vod_url}) {thumb_url}' # Creating an embed embed = discord.Embed( @@ -152,7 +151,7 @@ async def query_database(): color=discord.Color.green() ) embed.set_thumbnail(url=thumb_url) - embed.add_field(name='Download MP4', value='[Download Video](video_url)', inline=False) + embed.add_field(name='Download MP4', value=f'[Download Video]({video_url})', inline=False) embed.set_author(name='DeflaxTV', icon_url=bot.user.avatar_url) # Sending the embed to the channel