Puyodead1 / udemy-downloader

A Udemy downloader that can download courses, with DRM support.
MIT License
1.31k stars 307 forks source link

[Bug]: Error Converting: 'gbk' codec can't encode character #90

Closed caijingwen-vincent closed 10 months ago

caijingwen-vincent commented 2 years ago

What happened?

  1. Download course
  2. Download subtitle like srt format
  3. In rare cases, the error shown in the figure below will occur
  4. This error will cause the corresponding subtitle file to be empty

image

Expected Result

There will be no errors in the picture, and the subtitles can be downloaded normally

Branch

master/main

What operating systems are you seeing the problem on?

No response

Relevant log output

No response

Other information

No response

caijingwen-vincent commented 2 years ago

When I redownload the captions , the captions will download correctly.

here below is what I type to download: python main.py -c https://www.udemy.com/course/shipping-from-alibaba-to-amazon-fba-alibaba-training-course/ --download-assets --download-captions --skip-hls --disable-ipv6

here below is what I type to redownload : python main.py -c https://www.udemy.com/course/shipping-from-alibaba-to-amazon-fba-alibaba-training-course/ --skip-lectures --download-captions

Puyodead1 commented 2 years ago

I've push some new commits that have most debugging stuff, please try with the --log-level DEBUG option added and post the resulting log file, this should have more information to find the issue.