You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
单个下载报错日志
Traceback (most recent call last):
File "D:\PythonProject\githubProject\qcourse_scripts\qcourse.py", line 171, in
main()
File "D:\PythonProject\githubProject\qcourse_scripts\qcourse.py", line 123, in main
asyncio.run(parse_course_url_and_download(course_url))
File "C:\My_Install\Anaconda3\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\My_Install\Anaconda3\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "D:\PythonProject\githubProject\qcourse_scripts\qcourse.py", line 88, in parse_course_url_and_download
await download_single(urls[0], urls[1], filename, path)
File "D:\PythonProject\githubProject\qcourse_scripts\downloader.py", line 150, in download_single
decrypt_file(str(file) + '.ts', key)
File "D:\PythonProject\githubProject\qcourse_scripts\downloader.py", line 28, in decrypt_file
dec = decrypt(ciphertext, key)
File "D:\PythonProject\githubProject\qcourse_scripts\downloader.py", line 21, in decrypt
plaintext = cipher.decrypt(ciphertext[AES.block_size:])
File "D:\PythonProject\githubProject\venv\lib\site-packages\Crypto\Cipher_mode_cbc.py", line 246, in decrypt
raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode
简单描述
下载单个视频出错,换批量下载只下载1个1k的文件
环境
Python: 3.9
浏览器: edge
操作系统: Windows 10
单个下载报错日志
Traceback (most recent call last):
File "D:\PythonProject\githubProject\qcourse_scripts\qcourse.py", line 171, in
main()
File "D:\PythonProject\githubProject\qcourse_scripts\qcourse.py", line 123, in main
asyncio.run(parse_course_url_and_download(course_url))
File "C:\My_Install\Anaconda3\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\My_Install\Anaconda3\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "D:\PythonProject\githubProject\qcourse_scripts\qcourse.py", line 88, in parse_course_url_and_download
await download_single(urls[0], urls[1], filename, path)
File "D:\PythonProject\githubProject\qcourse_scripts\downloader.py", line 150, in download_single
decrypt_file(str(file) + '.ts', key)
File "D:\PythonProject\githubProject\qcourse_scripts\downloader.py", line 28, in decrypt_file
dec = decrypt(ciphertext, key)
File "D:\PythonProject\githubProject\qcourse_scripts\downloader.py", line 21, in decrypt
plaintext = cipher.decrypt(ciphertext[AES.block_size:])
File "D:\PythonProject\githubProject\venv\lib\site-packages\Crypto\Cipher_mode_cbc.py", line 246, in decrypt
raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode
The text was updated successfully, but these errors were encountered: