youtube-dl
youtube-dl copied to clipboard
ccma fix date parsing
Before submitting a pull request make sure you have:
- [x] Searched the bugtracker for similar pull requests
- [x] Read adding new extractor tutorial
- [x] Read youtube-dl coding conventions and adjusted the code to meet them
- [x] Covered the code with tests (note that PRs without tests will be REJECTED)
- [x] Checked the code with flake8
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
- [x] I am the original author of this code and I am willing to release it under Unlicense
- [ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)
What is the purpose of your pull request?
- [x] Bug fix
- [ ] Improvement
- [ ] New extractor
- [ ] New feature
Description of your pull request and other information
This PR fixes the date to the way ccma provides it as well as fixing some broken tests
closes #30961
The download tests are failing. Please check if this is happening locally. Both in Py 2.7 and Py 3.9 there's 403 on extraction in one test, and failing to get the timestamp/upload_date in others. Possibly the webpage is somehow not being decoded into UTF-8.