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.
RegexNotFoundError on RTP channel #20480
Comments
|
Hi, I've confirmed this issue exists with the link you've provided. Also, the test case URL for rtp has a similar error: I'm assuming that the site has changed its layout, and now the extractor can't get the player config information it needs. I'm going to take a look at this. |
|
Hi,
That's good news. Thanks for looking at it.
…On Tue, 9 Apr 2019 04:01 mtilbury, ***@***.***> wrote:
Hi, I've confirmed this issue exists with the link you've provided. Also,
the test case URL <http://www.rtp.pt/play/p405/e174042/paixoes-cruzadas>
for rtp has a similar error: ERROR: Unable to extract player config
I'm assuming that the site has changed its layout, and now the extractor
can't get the player config information it needs. I'm going to take a look
at this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20480 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AusJ3000ApMkOwkoJyBwXqV2uxcKql3Oks5vfAKbgaJpZM4cLzt9>
.
|
|
I made a pull request for a fix here: #20484 |
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 2019.03.18. 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?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):paul@paul-NC10 ~ $ youtube-dl --verbose -o "/home/paul/Videos/%(title)s.%(ext)s" --fragment-retries 1 https://www.rtp.pt/play/p5285/e397170/jornal-da-tarde-2019
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-o', u'/home/paul/Videos/%(title)s.%(ext)s', u'--fragment-retries', u'1', u'https://www.rtp.pt/play/p5285/e397170/jornal-da-tarde-2019']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.18
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-143-generic-i686-with-LinuxMint-18.3-sylvia
[debug] exe versions: ffmpeg 3.2.6-1, ffprobe 3.2.6-1, phantomjs 2.1.1, rtmpdump 2.4-n111-gitfa8646d-ppa10p1
[debug] Proxy map: {}
[RTP] e397170: 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 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 794, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/rtp.py", line 40, in _real_extract
r'(?s)RTPPLAY.player.newPlayer(\s*({.?})\s)', webpage, 'player config')
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1004, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
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.
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
I'm using version 2019.03.18. I tried to download the programme I've pasted from The RTP website but got the error message above. Downloads have worked fine in the past. Whilst the programme will stream perfectly in a browser, I prefer to download. I'm afraid that's about all I can tell you.