Modify video info

This commit is contained in:
taizan-hokuto
2020-02-28 01:04:18 +09:00
parent 18c08f45ad
commit 5480e3e9ed
3 changed files with 120 additions and 23 deletions

View File

@@ -54,7 +54,7 @@ class SuperChatMiner:
def extract(video_id, div = 1, callback = None, processor = None):
duration = 0
try:
duration = VideoInfo(video_id).get("duration")
duration = VideoInfo(video_id).duration
except InvalidVideoIdException:
raise
if duration == 0: