r0oth3x49 / acloud-dl

A cross-platform python based utility to download courses from acloud.guru for personal offline use.
MIT License
350 stars 141 forks source link

AttributeError: 'dict' object has no attribute 'strip' #51

Closed ducna96 closed 4 years ago

ducna96 commented 4 years ago

i has a issue when get download , please help me :D Traceback (most recent call last): File "acloud-dl.py", line 334, in main() File "acloud-dl.py", line 327, in main acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all) File "acloud-dl.py", line 243, in course_download self.download_lectures_only(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=lecture_index, lectures_count=lectures_count, lecture_assets=lecture_assets, lecture_subs=lecture_subs, filepath=filepath) File "acloud-dl.py", line 174, in download_lectures_only self.download_lectures(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=inner_index, lectures_count=lectures_count, filepath=filepath) File "acloud-dl.py", line 159, in download_lectures retval = lecture_best.download(filepath=filepath, quiet=True, callback=self.show_progress) File "/home/vt_admin/acloud-dl/acloud/_shared.py", line 380, in download req = compat_request(self.url, headers={'User-Agent' : HEADERS.get('User-Agent')}) File "/usr/lib64/python2.7/urllib2.py", line 229, in init self.__original = unwrap(url) File "/usr/lib64/python2.7/urllib.py", line 1059, in unwrap url = url.strip() AttributeError: 'dict' object has no attribute 'strip'