r0oth3x49 / acloud-dl

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

AttributeError: 'Nonetype' object has no attribute 'get' at the beginning of the download #63

Closed maxleonca closed 3 years ago

maxleonca commented 3 years ago

Hi,

Run environment: ArchLinux Python 3.8.6 virtualenv setup.

It install flawlessly, connects and identifies the course/s available no problem. When it starts the download I get:

[*] : Downloading accessible courses information .. (done)
[1] : Programming Use Cases with Python 
[?] : select course number or range (1/1/range): 1

[*] : Course 'Programming Use Cases with Python'.
[*] : Downloading course information .. \Traceback (most recent call last):
File "acloud-dl.py", line 332, in <module>
    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 209, in course_download
    course = course.get_course(keep_alive=download_all)
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_shared.py", line 86, in get_course
    self._process_course(keep_alive=keep_alive)
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_internal.py", line 69, in _process_course
    self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_internal.py", line 78, in __init__
    super(InternCloudGuruCourse, self).__init__()
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_shared.py", line 106, in __init__
    self._fetch_course()
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_internal.py", line 84, in _fetch_course
    self._info = self._real_extract(course_id=course_id)
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_extract.py", line 806, in _real_extract
    "lectures": self._extract_lectures(lectures),
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_extract.py", line 712, in _extract_lectures
    streams = self._fetch_hls_streams_by_content_ids(contentid_list)
  File "/home/mleon/ytdl/acloud-dl/acloud-dl/acloud/_extract.py", line 571, in _fetch_hls_streams_by_content_ids
    _id = entry.get("contentId")
AttributeError: 'NoneType' object has no attribute 'get'

Thank you