r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.86k stars 1.2k forks source link

Unexpected error while downloading. #240

Closed AnthonyIp closed 6 years ago

AnthonyIp commented 6 years ago

Hi ! I got some error which pop out when I'm downloading.

Traceback (most recent call last): File "/home/anthony/Documents/udemy-dl/udemy-dl.py", line 1441, in main() File "/home/anthony/Documents/udemy-dl/udemy-dl.py", line 1437, in main udemy.course_download(path=options.output, quality=options.quality, unsafe=options.unsafe) File "/home/anthony/Documents/udemy-dl/udemy-dl.py", line 511, in course_download self.download_lectures_and_captions(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=inner_index, lectures_count=lectures_count, lecture_subtitles=lecture_subtitles, lecture_assets=lecture_assets, filepath=filepath, unsafe=unsafe) File "/home/anthony/Documents/udemy-dl/udemy-dl.py", line 427, in download_lectures_and_captions self.download_subtitles(lecture_subtitles=lecture_subtitles, filepath=filepath, unsafe=unsafe) File "/home/anthony/Documents/udemy-dl/udemy-dl.py", line 378, in download_subtitles self.convert(filename=filename) File "/home/anthony/Documents/udemy-dl/udemy/_vtt2srt.py", line 142, in convert _start, _end = m.group(1), m.group(2) AttributeError: 'NoneType' object has no attribute 'group'

I have it on 2 courses: https://www.udemy.com/complete-android-n-developer-course/learn/v4/ and https://www.udemy.com/the-complete-android-oreo-developer-course/learn/v4/

r0oth3x49 commented 6 years ago

@AnthonyIp i might need your account to test against these courses and fix the problem for now you can also skip the subs with --skip-subs option

AnthonyIp commented 6 years ago

@r0oth3x49 It works. So the issue was from the subs.

r0oth3x49 commented 6 years ago

@AnthonyIp can you please explain a bit more. is this working for you fine now or what?

AnthonyIp commented 6 years ago

@r0oth3x49 By skipping the subs, I can download the video now but I can't download the substitles.

coderjolly commented 6 years ago

Hi! This is exactly error i am getting, ignore the first 2 lines

screen shot 2018-06-28 at 2 40 11 am
AnthonyIp commented 6 years ago

@CoderJolly from the last sentence of the output, I can guess you haven't installed colorama. Do a "sudo pip install -r requirement.txt" in the udemy-dl folder.

r0oth3x49 commented 6 years ago

@AnthonyIp as i said i cannot reproduce the error i might need your credentials to fix the error if you agree to share then please email me if not then i will close the issue and will w8 for others to report the same

r0oth3x49 commented 6 years ago

@CoderJolly you should install requirements instead both error are different.