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

[Screencast-o-matic] ERROR: Unable to extract setup code; please report this issue #24489

Closed
5 tasks done
owlboy opened this issue Mar 26, 2020 · 1 comment
Closed
5 tasks done

Comments

@owlboy
Copy link

owlboy commented Mar 26, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.03.24
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

NOTE: #23512 has different verbose output. And does not even identify as attempting to use the Screencast-o-matic module. It appears that the person is attempting to download a "channel" or a "playlist." That might not be supported, period. This issue is about downloading a single video.

Verbose log

$ youtube-dl -f best -v https://screencast-o-matic.com/watch/cqi6qjO2GF
[debug] System config: [u'-f', u'bestvideo+bestaudio']
[debug] User config: [u'-f', u'bestvideo[ext=mp4, height<=1100]+bestaudio', u'--write-thumbnail', u'--restrict-filenames']
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'best', u'-v', u'https://screencast-o-matic.com/watch/cqi6qjO2GF']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.17 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[ScreencastOMatic] cqi6qjO2GF: Downloading webpage
ERROR: Unable to extract setup code; 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 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/screencastomatic.py", line 29, in _real_extract
    r"(?s)jwplayer\('mp4Player'\).setup\((\{.*?\})\);", webpage, 'setup code'),
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract setup code; 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.

Description

I tried to use this on a Screencast-o-Matic video and youtube-dl told me to report here that it does not work.

I also tried passing youtube-dl just the iFrame URL that the video is in.

@motorsalad
Copy link

Same (similar ?) issue here on passworded content using 2021.04.01:

glider:Desktop phil$ youtube-dl https://screencast-o-matic.com/watch/crew2OVVJbL --video-password XXXXXXX --verbose [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'https://screencast-o-matic.com/watch/crew2OVVJbL', u'--video-password', u'PRIVATE', u'--verbose'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2021.04.01 [debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit [debug] exe versions: none [debug] Proxy map: {} [ScreencastOMatic] crew2OVVJbL: Downloading webpage ERROR: Unable to extract setup code; 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 806, in wrapper return func(self, *args, **kwargs) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 827, in __extract_info ie_result = ie.extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract ie_result = self._real_extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/screencastomatic.py", line 29, in _real_extract r"(?s)jwplayer\('mp4Player'\).setup\((\{.*?\})\);", webpage, 'setup code'), File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1012, in _search_regex raise RegexNotFoundError('Unable to extract %s' % _name) RegexNotFoundError: Unable to extract setup code; 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.

Thanks for all this work anyway :-).

github-actions bot added a commit to hellopony/youtube-dl that referenced this issue Apr 1, 2021
* https://github.com/ytdl-org/youtube-dl:
  [screencastomatic] fix extraction(closes ytdl-org#11976, closes ytdl-org#24489)
  [palcomp3] Add new extractor(closes ytdl-org#13120)
  [arnes] Add new extractor(closes ytdl-org#28483)
  [youtube:tab] Add support for hashtag videos extraction(closes ytdl-org#28308)
  release 2021.04.01
  [ChangeLog] Actualize [ci skip]
  [youtube] Setup CONSENT cookie when needed (closes ytdl-org#28604)
leshasmlesha pushed a commit to leshasmlesha/youtube-dl that referenced this issue Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants