r0oth3x49 / lynda-dl

A cross-platform python based utility to download courses from lynda.com for personal offline use.
MIT License
295 stars 95 forks source link

Error Downloading with cookies #64

Closed manu212 closed 5 years ago

manu212 commented 5 years ago

newest version. THe JSON decode error is gone, but now the following occurs: (command: python lynda-dl.py -k cookie.txt COURSE_URL) [] : Downloading course information .. -Traceback (most recent call last): File "lynda-dl.py", line 395, in main() File "lynda-dl.py", line 355, in main lynda.course_download(path=options.output, quality=options.quality) File "lynda-dl.py", line 162, in course_download course = lynda.course(url=self.url, username=self.username, password=self.password, organization=self.organization, cookies=self.cookies) File "C:\Users\x\Documents\portable_apps\lynda-dl-master\lynda_lynda.py", line 38, in course return Lynda(url, username, password, organization, cookies, basic, callback) File "C:\Users\x\Documents\portable_apps\lynda-dl-master\lynda_internal.py", line 43, in init super(InternLyndaCourse, self).init(args, **kwargs) File "C:\Users\x\Documents\portable_apps\lynda-dl-master\lynda_shared.py", line 65, in init self._fetch_course() File "C:\Users\x\Documents\portable_apps\lynda-dl-master\lynda_internal.py", line 55, in _fetch_course self._info = self._real_extract(self._url) File "C:\Users\x\Documents\portable_apps\lynda-dl-master\lynda_extract.py", line 298, in _real_extract subtitles = self._extract_subtitles(lecture_id) File "C:\Users\x\Documents\portable_apps\lynda-dl-master\lynda_extract.py", line 161, in _extract_subtitles if "Status=\"NotFound\"" in subs_raw.content: TypeError: a bytes-like object is required, not 'str'