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

Vice (Ooyala) not working with generic extractor #3880

Closed
zacs opened this issue Oct 4, 2014 · 2 comments
Closed

Vice (Ooyala) not working with generic extractor #3880

zacs opened this issue Oct 4, 2014 · 2 comments

Comments

@zacs
Copy link

@zacs zacs commented Oct 4, 2014

Looking back at old commits, looks like the Vice functionality was removed from its own IE and added to the Ooyala one. I may be wrong about that. Verbose output:

$ youtube-dl -v http://www.vice.com/the-real/the-real-true-detective-010                                                         10/04/2014 15:55:08 PDT
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.vice.com/the-real/the-real-true-detective-010']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.02
[debug] Python version 2.7.6 - Darwin-13.3.0-x86_64-i386-64bit
[debug] Proxy map: {}
[generic] the-real-true-detective-010: Requesting header
WARNING: Falling back on generic information extractor.
[generic] the-real-true-detective-010: Downloading webpage
[generic] the-real-true-detective-010: Extracting information
ERROR: Unsupported URL: http://www.vice.com/the-real/the-real-true-detective-010; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 540, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1549, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 74, column 50
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 524, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 191, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 897, in _real_extract
    raise ExtractorError('Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://www.vice.com/the-real/the-real-true-detective-010; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
@zacs
Copy link
Author

@zacs zacs commented Oct 4, 2014

It's probably super obvious to those of you who work on it, but looks like Ooyala doesn't necessarily include embedCode or ec in their embeds at times, and thus it fails the check in generic.py? This is what's currently in the Vice page's source:

<script src='http://player.ooyala.com/v3/YjMwNmI4YjU2MGM5ZWRjMzRmMjljMjc5?platform=html5-fallback'></script>
@naglis
Copy link
Collaborator

@naglis naglis commented Feb 22, 2015

Vice extractor has been re-added, so it should work with youtube-dl 2014.11.09 and newer. Please update and try, if it works for you (see our FAQ if you have problems updating).

Please note, however, that the URL you had problem's with no longer exists or the URL scheme on Vice.com has changed a bit - I've found it to now be: http://www.vice.com/video/the-real-true-detective-010.

I am closing this now, comment here if the problem still persists after updating and I'll reopen it, or open a new issue.

@naglis naglis closed this Feb 22, 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.