From 3d930f6aaee296d30840858a0bd1bb0985cc8680 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 7 Oct 2023 03:08:31 +0300 Subject: [PATCH] fix error --- files/helpers/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 82a69a28d..d98527d3a 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -186,7 +186,7 @@ def _create_post(title, body, pin_hours): def _create_and_delete_orgy(): video_info = ffmpeg.probe(f'/orgies/{get_file()}') - seconds = int(video_info['streams'][0]['duration']) + seconds = float(video_info['streams'][0]['duration']) end_utc = int(time.time() + seconds) orgy = Orgy(