rssVideos: Ensure duration is an int

This commit is contained in:
Geoffrey Frogeye 2023-06-24 13:36:50 +02:00
parent 6c249a452f
commit eba894d9f4
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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: