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

Fails for some videos, possibly due to some character in name #73

Closed tripperaf closed 3 years ago

tripperaf commented 3 years ago

[+] : Downloaded (001 Understanding - Red Hat.html) Traceback (most recent call last): File "acloud-dl.py", line 332, in main() File "acloud-dl.py", line 325, in main acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all) File "acloud-dl.py", line 241, 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 176, in download_lectures_only self.download_assets(lecture_assets=lecture_assets, filepath=filepath) File "acloud-dl.py", line 135, in download_assets assets.download(filepath=filepath, quiet=True, callback=self.show_progress) File "C:\Users\AppData\Local\Programs\Python\Python37\acloud_shared.py", line 853, in download return self._write_external_links(filepath) File "C:\Users\AppData\Local\Programs\Python\Python37\acloud_shared.py", line 769, in _write_external_links with open("{}".format(filename), "a", encoding="utf-8") as f: OSError: [Errno 22] Invalid argument: '\\?\\\?\C:\Users\AppData\Local\Programs\Python\Python37\Hands-on with \03 Managing \001 Linux 8 - Images.txt'

r0oth3x49 commented 3 years ago

I might need an account to reproduce and fix the issue, You can email me your creds on nasir251292@gmail.com if you don't have any issue with sharing creds otherwise i can't fix the issue as i don't have any account on acloud as of yet

r0oth3x49 commented 3 years ago

You should download it to a short path like E:\\tuts or disable path limit in windows