From 24d684564ef9b43e5433b19999d26cfe67f06a24 Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 18 Jan 2024 02:26:17 +0200 Subject: [PATCH] fix some bugs --- src/discordbot/discordbot.py | 1 - src/scheduler/scheduler.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index 53f91ef..71f8882 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -152,7 +152,6 @@ async def query_database(): ) embed.set_thumbnail(url=thumb_url) 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 await live_channel.send(embed=embed) diff --git a/src/scheduler/scheduler.py b/src/scheduler/scheduler.py index 85e812f..4495139 100644 --- a/src/scheduler/scheduler.py +++ b/src/scheduler/scheduler.py @@ -214,7 +214,7 @@ def exec_recorder(stream_id, stream_hls_url): # Generate thumbnail image from the recorded mp4 file ffmpeg_thumb = ( FFmpeg() - .input(video_output, thumb_skip_time) + .input(video_output, ss=thumb_skip_time) .filter('scale', thumb_width, -1) .output(thumb_output, vframes=1) )