diff --git a/course-downloader.py b/course-downloader.py index e154b45..2fdb710 100644 --- a/course-downloader.py +++ b/course-downloader.py @@ -77,7 +77,7 @@ def get_video_info(url, quality=1080, language='en'): if args.subtitle: try: print(video_info['title'], f": Downloading Subtitle...") - time.sleep(random.randint(1000, 4000)) + time.sleep(random.randint(1, 4)) subtitle = requests.get(video_info['subtitle'], allow_redirects=True, ) with open(f"{video_info['filename']}.vtt", 'wb') as f: f.write(subtitle.content)