Change VideoInfo functions to accessor style

This commit is contained in:
taizan-hokuto
2020-02-29 03:10:20 +09:00
parent fe2047502a
commit ff9e7de796
10 changed files with 171 additions and 37 deletions

View File

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