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.
Youtube-dl doesn´t extract from RTP play #26657
Comments
|
@vallovic 's repository supposedly deals correctly with the new changes. However, with them, I am still seeing this (which, I suppose, might mean they made even more changes in the meantime):
|
|
@marado You're right, they changed something in the meantime: they inserted an extra space where it wasn't supposed to. I've fixed it and already pushed the change to my repo. |
|
Hi, I was trying to fix this (with my rather limited knowledge of youtube-dl) before seeing this issue and @vallovic 's repository, but still, here's a possible fix (rtp.py and patch): https://gist.github.com/loucurapt/15e5b5cba1111195075ea0ec89c3fb3b It has a workaround for that js_to_json bug. I simply remove lines that start with "//" from the JSON before sending it to It seems to download videos fine. Anyone, feel free to use it and push it to youtube-dl! |
Verobse log:
youtube-dl -v https://www.rtp.pt/play/p7636/e492820/os-durrell
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.rtp.pt/play/p7636/e492820/os-durrell']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg 2020-09-20-git-ef29e5bf42-essentials_build-www.gyan.dev, ffprobe 2020-09-20-git-ef29e5bf42-essentials_build-www.gyan.dev
[debug] Proxy map: {}
[RTP] e492820: Downloading webpage
ERROR: Unable to extract player config; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\common.py", line 532, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\rtp.py", line 37, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\common.py", line 1010, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract player config; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
When I run youtube-dl and I tried to download, for example, from this link
I've read the previous reports concerning youtube-dl and RTP Play, but since RTP play seems to have been changed in some way on sept 14th, perhaps youtube-dl needs some kind of upgrade.
Thank very much for the helping.
Best regards.