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

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