rssVideos: Ensure duration is an int
This commit is contained in:
parent
6c249a452f
commit
eba894d9f4
|
@ -209,7 +209,7 @@ class RVElement:
|
||||||
def duration(self) -> int:
|
def duration(self) -> int:
|
||||||
assert self.is_video
|
assert self.is_video
|
||||||
assert self.ytdl_infos
|
assert self.ytdl_infos
|
||||||
return self.ytdl_infos["duration"]
|
return int(self.ytdl_infos["duration"])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_video(self) -> bool:
|
def is_video(self) -> bool:
|
||||||
|
|
Loading…
Reference in a new issue