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

South Park: RegexNotFoundError: Unable to extract mgid #5515

Closed
wyatt8740 opened this issue Apr 23, 2015 · 6 comments
Closed

South Park: RegexNotFoundError: Unable to extract mgid #5515

wyatt8740 opened this issue Apr 23, 2015 · 6 comments

Comments

@wyatt8740
Copy link

@wyatt8740 wyatt8740 commented Apr 23, 2015

I get the following error downloading a URL from southpark.cc.com in Mac OS X 10.6.8.

$ youtube-dl --verbose http://southpark.cc.com/full-episodes/s09e02-die-hippie-die
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://southpark.cc.com/full-episodes/s09e02-die-hippie-die']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.17
[debug] Python version 2.6.1 - Darwin-10.8.0-i386-64bit
[debug] exe versions: ffmpeg 2.6.2, ffprobe 2.6.2, rtmpdump 2.4
[debug] Proxy map: {}
[southpark.cc.com] s09e02-die-hippie-die: Downloading webpage
ERROR: Unable to extract mgid; 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 "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/mtv.py", line 184, in _real_extract
    og_url = self._og_search_video_url(webpage)
  File "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/common.py", line 651, in _og_search_video_url
    return self._html_search_regex(regexes, html, name, **kargs)
  File "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/common.py", line 567, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/common.py", line 557, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video url; 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 "/Users/wyatt/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 651, in extract_info
    ie_result = ie.extract(url)
  File "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/common.py", line 275, in extract
    return self._real_extract(url)
  File "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/mtv.py", line 194, in _real_extract
    webpage, 'mgid')
  File "/Users/wyatt/bin/youtube-dl/youtube_dl/extractor/common.py", line 557, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract mgid; 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.

I have yet to test this in linux because I am not presently in a situation where I can reboot into linux (in the middle of a re-installation). But since it's python, I am doubting it is the issue.

However, I supose it's possible it's due to me using an outdated version of python (2.6.1, where the latest 2.x is 2.7.9). I'm waiting for MacPorts to build 2.7.9 and will close this issue if that is the problem.

@wyatt8740
Copy link
Author

@wyatt8740 wyatt8740 commented Apr 23, 2015

okay, it finished. Python 2.6 was not the issue, python 2.7.9 shows this too.

Shows it in the latest code in git, as well.

I am no good at debugging python (I don't really 'do' high level languages well), so I am not sure what the issue is. Guessing that Hulu changed something though.

Actually, just noticed that there's a closed bug with this for the Daily Show. Was that fixed for it but not the south park downloader? ( #5369 )

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 24, 2015

Works perfectly for me with 2015.04.17. Can you post *.dump files when running with --write-pages?

@wyatt8740
Copy link
Author

@wyatt8740 wyatt8740 commented Apr 25, 2015

sure, here you are.
http://pastebin.com/bF1TFf3f

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 25, 2015

The webpage clearly states:

This episode is currently not available at South Park Studios

Looks like this happens only for US IP adresses.

@wyatt8740
Copy link
Author

@wyatt8740 wyatt8740 commented Apr 26, 2015

crap. so it's just region blocks again. Okay.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 26, 2015

Works fine in latest version.

@dstftw dstftw closed this Sep 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.