Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bravo] Unable to extract drupal settings #19213

Closed
StevenDTX opened this issue Feb 13, 2019 · 7 comments
Closed

[bravo] Unable to extract drupal settings #19213

StevenDTX opened this issue Feb 13, 2019 · 7 comments

Comments

@StevenDTX
Copy link

@StevenDTX StevenDTX commented Feb 13, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.02.08. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.02.08

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)


E:\>youtube-dl --verbose https://www.bravotv.com/vanderpump-rules/season-7/ep-10-so-vain-in-solvang
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.bravotv.com/vanderpump-rules/season-7/ep-10-so-vain-in-solvang']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.02.08
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg N-92986-gaceb9131c1, ffprobe N-92986-gaceb9131c1, rtmpdump 2.4
[debug] Proxy map: {}
[BravoTV] ep-10-so-vain-in-solvang: Downloading webpage
ERROR: Unable to extract drupal settings; 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\rg3\tmp6w61832c\build\youtube_dl\YoutubeDL.py", line 794, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6w61832c\build\youtube_dl\extractor\common.py", line 508, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6w61832c\build\youtube_dl\extractor\bravotv.py", line 35, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6w61832c\build\youtube_dl\extractor\common.py", line 983, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract drupal settings; 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.
...
<end of log>

Description of your issue, suggested solution and other information

Something has apparently changed with Bravo within the last week. All videos produce this error: "Unable to extract drupal settings."

I get the same result with or without MSO credentials.

@NGTmeaty
Copy link

@NGTmeaty NGTmeaty commented Feb 13, 2019

Just made a little fix. Will try to get it in a PR tonight.

@NGTmeaty NGTmeaty mentioned this issue Feb 13, 2019
5 of 9 tasks complete
@StevenDTX
Copy link
Author

@StevenDTX StevenDTX commented Feb 13, 2019

Thanks a lot @NGTmeaty!

@jeeribaldi
Copy link

@jeeribaldi jeeribaldi commented Feb 15, 2019

New user. Still receiving the following:

~$ youtube-dl --verbose https://www.bravotv.com/top-chef/season-16/episode-11/videos/lck-ep-12-the-final-knockout
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.bravotv.com/top-chef/season-16/episode-11/videos/lck-ep-12-the-final-knockout']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.02.08
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-45-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.4, ffprobe 3.4.4
[debug] Proxy map: {}
[BravoTV] lck-ep-12-the-final-knockout: Downloading webpage
ERROR: Unable to extract drupal settings; 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 508, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bravotv.py", line 35, in _real_extract
r'jQuery.extend(Drupal.settings\s*,\s*({.+?}));', webpage, 'drupal settings'),
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 983, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract drupal settings; 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.

@StevenDTX
Copy link
Author

@StevenDTX StevenDTX commented Feb 15, 2019

@jeeribaldi

If you will notice, this issue is still open. @NGTmeaty was kind enough to fix the issue, but until one of the youtube-dl maintainers merges his fixes into a new build, then it will continue to fail.

This issue will get closed once its merged.

@nevafuse
Copy link

@nevafuse nevafuse commented Feb 18, 2019

@NGTmeaty I'm getting the following error when using your branch. I noticed your test was using a different show. You mind trying this show and see if you get the same error?

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.bravotv.com/top-chef/season-16/episode-11/videos/lck-ep-12-the-final-knockout']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.02.18
[debug] Git HEAD: ca1dc4a8a
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: none
[debug] Proxy map: {}
[BravoTV] lck-ep-12-the-final-knockout: Downloading webpage
ERROR: no suitable InfoExtractor for URL http://link.theplatform.com/s/HNK2IC/?switch=progressive&mbr=true#__youtubedl_smuggle=%7B%22force_smil_url%22%3A+true%7D
File "/usr/local/bin/youtube-dl", line 19, in
youtube_dl.main()
File "/opt/youtube-dl/youtube_dl/init.py", line 472, in main
_real_main(argv)
File "/opt/youtube-dl/youtube_dl/init.py", line 462, in _real_main
retcode = ydl.download(all_urls)
File "/opt/youtube-dl/youtube_dl/YoutubeDL.py", line 2006, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/opt/youtube-dl/youtube_dl/YoutubeDL.py", line 805, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/opt/youtube-dl/youtube_dl/YoutubeDL.py", line 871, in process_ie_result
extra_info=extra_info, download=False, process=False)
File "/opt/youtube-dl/youtube_dl/YoutubeDL.py", line 828, in extract_info
self.report_error('no suitable InfoExtractor for URL %s' % url)
File "/opt/youtube-dl/youtube_dl/YoutubeDL.py", line 622, in report_error
self.trouble(error_message, tb)
File "/opt/youtube-dl/youtube_dl/YoutubeDL.py", line 584, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@roadzy
Copy link

@roadzy roadzy commented Feb 28, 2019

Any idea how long it will take this to get merged by the maintainers? How often do bugs get merged? I just came here since I had the same error as above.

@roadzy
Copy link

@roadzy roadzy commented Mar 1, 2019

Ok new version pushed and downloaded. Same Error

youtube-dl --version
2019.03.01

youtube-dl --verbose --cookies=bev.txt https://www.bravotv.com/the-real-housewives-of-beverly-hills/season-9/ep-3-sun-and-shade-in-the-bahamas
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--cookies=bev.txt', 'https://www.bravotv.com/the-real-housewives-of-beverly-hills/season-9/ep-3-sun-and-shade-in-the-bahamas']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.01
[debug] Python version 3.6.1 (CPython) - Linux-3.10.0-862.3.2.el7.x86_64-x86_64-with-centos-7.5.1804-Core
[debug] exe versions: ffmpeg 3.4.5, ffprobe 3.4.5
[debug] Proxy map: {}
[BravoTV] ep-3-sun-and-shade-in-the-bahamas: Downloading webpage
ERROR: Unable to extract drupal settings; 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.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 794, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 508, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/extractor/bravotv.py", line 35, in _real_extract
r'jQuery.extend(Drupal.settings\s*,\s*({.+?}));', webpage, 'drupal settings'),
File "/usr/local/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 983, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract drupal settings; 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.

@NGTmeaty Do you know if your fix made it in to this new release?

dstftw added a commit that referenced this issue Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.