Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Not sure if it's a bug in youtube-dl or cookiejar.py GBK codec can't decode #16131
Comments
|
Cookie file must be in |
|
@dstftw Sorry to bother, but how can I change the |
目前我也遇到了这个问题,gbk编码出错。现在我已经解决了。(抱歉,刚才注意到您的版本是2018的,目前的版本是2020.01.01,但是刚才我查看了您的错误信息,并且查看了 我自己遇到的问题的解决办法如下:
经过上面的修改,您的程序应该能够正常运行了,因为我目前就是这样解决的。而您的错误信息中指向了
该处代码是读取文件的初始位置,需要在这里进行修改,使之能够正常读取gbk编码的文件即可。
如此应该就能解决您的问题machine translation At present I also encountered this problem, gbk encoding error. Now I have solved it.(Sorry, just noticed that your version is 2018, and the current version is 2020.01.01, but just now I checked your error message and checked the source code of The solution to my own problem is as follows:
After the above modification, your program should be able to run normally, because this is how I solve it now.And your error message points to
The code here is the initial position for reading the file. It needs to be modified here so that it can read the gbk encoded file normally.
This should solve your problem |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
this problem only occurs when Im using youtube-dl under python3
Under python2, I can download the full course perfectly
while I use
as above, python3 gives me a default encoding as UTF8