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

@@ -24,7 +24,7 @@ class Extractor:
def _get_duration_of_video(self, video_id):
duration = 0
try:
duration = VideoInfo(video_id).get("duration")
duration = VideoInfo(video_id).duration
except InvalidVideoIdException:
raise
return duration