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

Error after downloading 2 files #106

Closed queen4me closed 1 year ago

queen4me commented 1 year ago

I'm using Windows 10 with freshly installed Python/PiP. Every download starts but after downloading the first two files the download stops and the program ends with:

Traceback (most recent call last): File "C:\PYTHON\acloud\acloud-dl.py", line 408, in main() File "C:\PYTHON\acloud\acloud-dl.py", line 396, in main cloud_guru.course_download(path=options.output, quality=options.quality, File "C:\PYTHON\acloud\acloud-dl.py", line 295, in course_download self.download_lectures_only(lecture_best=lecture_best, lecture_title=lecture_title, File "C:\PYTHON\acloud\acloud-dl.py", line 217, in download_lectures_only self.download_subtitles(subtitle=lecture_subs, filepath=filepath) File "C:\PYTHON\acloud\acloud-dl.py", line 148, in download_subtitles self.convert(filename=filename) File "C:\PYTHON\acloud\acloud_vtt2srt.py", line 106, in convert timecode = self._generate_timecode(seq, unescapeHTML(line)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\PYTHON\acloud\acloud_vtt2srt.py", line 79, in _generate_timecode match = re.match(self._TIMECODE, timecode, flags=re.U) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\re__init__.py", line 166, in match return _compile(pattern, flags).match(string) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\re__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\re_compiler.py", line 743, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 980, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 455, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 841, in _parse raise source.error('global flags not at the start ' re.error: global flags not at the start of the expression at position 63

rabin-io commented 1 year ago

Try using my branch https://github.com/r0oth3x49/acloud-dl/pull/104

queen4me commented 1 year ago

Thanks for your reply but how do I have to use your branch? I'm not github expert and just downloaded your code and was happy to get it running with Python on my windows system.

rabin-io commented 1 year ago

Clone my repo, and checkout the fix branch,

git clone https://github.com/rabin-io/acloud-dl.git
cd acloud-dl
git checkout fix-issue-103

or just download the branch directly https://github.com/rabin-io/acloud-dl/archive/refs/heads/fix-issue-103.zip

queen4me commented 1 year ago

Thank you so much for the link to the branch. Working again now like a charm.

r0oth3x49 commented 1 year ago

@queen4me the issue is resolved with PR from @rabin-io so closing this