youtube-dl
youtube-dl copied to clipboard
fix platzi
Please follow the guide below
- You will be asked some questions, please read them carefully and answer honestly
- Put an
x
into all the boxes [ ] relevant to your pull request (like that [x]) - Use Preview tab to see how your pull request will actually look like
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
the problem is in the functions PlatziIE and PlatziCourseIE the functions to extract the information point to variables that no longer exist within the js fixed ytdl-org/youtube-dl#28536 fixed ytdl-org/youtube-dl#26566 fixed ytdl-org/youtube-dl#23786 fixed ytdl-org/youtube-dl#22939
This appears to be working as far as the tests go, but it may just be because it's a "Platzi weekend".
Anyone who has a login, especially for paid content, please test whether the login process works to allow you to download your courses. If not, what about --cookies ...
?
with credentials parameters raise this error

with cookies this error

python -m youtube_dl -v -F 'https://platzi.com/clases/2489-passport/41828-autenticacion-vs-autorizacion'
[debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-v', '-F', 'https://platzi.com/clases/2489-passport/41828-autenticacion-vs-autorizacion'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2021.12.17 [debug] Python version 3.7.3 (CPython) - Linux-5.15.45-amd64-desktop-x86_64-with-Deepin-20.7.1-apricot [debug] exe versions: ffmpeg 4.4.2-1, ffprobe 4.4.2-1 [debug] Proxy map: {} [Platzi] 41828: Downloading webpage [Platzi] 41828: Downloading webpage - retrying ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "/home/development/proyectos/platzi/venv/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage return self._downloader.urlopen(url_or_request) File "/home/development/proyectos/platzi/venv/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python3.7/urllib/request.py", line 531, in open response = meth(req, response) File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.7/urllib/request.py", line 569, in error return self._call_chain(*args) File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(*args) File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)
Is this development still in force?