From eba894d9f48be97e2b0665c28b2fd3b9d22210c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sat, 24 Jun 2023 13:36:50 +0200 Subject: [PATCH] rssVideos: Ensure duration is an int --- config/scripts/rssVideos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/scripts/rssVideos b/config/scripts/rssVideos index 2219d55..a817f45 100755 --- a/config/scripts/rssVideos +++ b/config/scripts/rssVideos @@ -209,7 +209,7 @@ class RVElement: def duration(self) -> int: assert self.is_video assert self.ytdl_infos - return self.ytdl_infos["duration"] + return int(self.ytdl_infos["duration"]) @property def is_video(self) -> bool: