link thumbnail as link instead of image until we fix the race condition

This commit is contained in:
deflax 2024-02-15 10:27:51 +00:00
parent 3ba0b01f34
commit 7525f82caa

View file

@ -164,12 +164,15 @@ async def query_database():
colour=0x00b0f4, colour=0x00b0f4,
timestamp=datetime.now()) timestamp=datetime.now())
embed.add_field(name="Download", embed.add_field(name="Download",
value=f"[mp4 file]({video_download_url})", value=f'[mp4 file]({video_download_url})',
inline=True) inline=True)
embed.add_field(name="Watch", embed.add_field(name="Watch",
value=f'[plyr.js player]({video_watch_url}) :]', value=f'[plyr.js player]({video_watch_url}) :]',
inline=True) inline=True)
embed.set_image(url=thumb_url) embed.add_field(name="Preview",
value=f'[thumb]({thumb_url})',
inline=True)
#embed.set_image(url=thumb_url)
embed.set_thumbnail(url=f'{img_url}/logo-96.png') embed.set_thumbnail(url=f'{img_url}/logo-96.png')
embed.set_footer(text="DeflaxTV", embed.set_footer(text="DeflaxTV",
icon_url=f'{img_url}/logo-96.png') icon_url=f'{img_url}/logo-96.png')
@ -186,4 +189,4 @@ async def announce_live_channel(stream_name, stream_meta):
await live_channel.send(f'{stream_name} is live! :satellite_orbital: {stream_meta}') await live_channel.send(f'{stream_name} is live! :satellite_orbital: {stream_meta}')
# Run the bot with your token # Run the bot with your token
asyncio.run(bot.run(bot_token)) asyncio.run(bot.run(bot_token))