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

Cocaine::ExitStatusError #62

Open
saigkill opened this issue Oct 3, 2017 · 2 comments
Open

Cocaine::ExitStatusError #62

saigkill opened this issue Oct 3, 2017 · 2 comments

Comments

@saigkill
Copy link

saigkill commented Oct 3, 2017

Hello layer8x,
i'm using your nice gem inside my own gem.
In my lib/downloader.rb i'm using:

video = YoutubeDL.download(url)
video.filename # => "Adele - Hello-YQHsXMglC9A.f137.mp4"
video_with_title = YoutubeDL.download(url, extract_audio: true, audio_format: 'best', audio_quality: 0, output: '%(title)s.%(ext)s')
video_with_title.filename # => "Adele - Hello.mp4"
title = YoutubeDL::Runner.new(url, get_title: true).run
title # => "Adele - Hello"
filename = video_with_title.filename

My tests are located there

If i'm running the tests locally, i get:

Finished in 29.98 seconds (files took 1.19 seconds to load)
14 examples, 0 failures

If i'm running it in Travis i'm getting the error:

  1. Downloader .get downloads a file from youtube
    Failure/Error: video = YoutubeDL.download(url)
    Cocaine::ExitStatusError:
    Command '/home/travis/build/saigkill/youtube_dlhelper/vendor/bundle/ruby/2.2.0/gems/youtube-dl.rb-0.3.1.2016.09.11.1/vendor/bin/youtube-dl --no-color --no-progress --print-json "https://www.youtube.com/watch?v=UgdSarGbE0g"' returned 1. Expected 0
    Here is the command output: STDOUT:
    STDERR:
    WARNING: unable to extract uploader nickname
    ERROR: Signature extraction failed: Traceback (most recent call last):
    File "/home/travis/build/saigkill/youtube_dlhelper/vendor/bundle/ruby/2.2.0/gems/youtube-dl.rb-0.3.1.2016.09.11.1/vendor/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature
    video_id, player_url, s
    File "/home/travis/build/saigkill/youtube_dlhelper/vendor/bundle/ruby/2.2.0/gems/youtube-dl.rb-0.3.1.2016.09.11.1/vendor/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 897, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
    ExtractorError: Cannot identify player u'/yts/jsbin/player-vfl1RKjMF/en_US/base.js'; 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.
    (caused by ExtractorError(u"Cannot identify player u'/yts/jsbin/player-vfl1RKjMF/en_US/base.js'; 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.",)); 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.

The differences:
Locally i'm running Ubuntu Zesty, Travis works with Trusty.

Both are using youtube-dl.rb-0.3.1.2016.09.11.1.

@aziflaj
Copy link

aziflaj commented Feb 22, 2018

@saigkill facing the same issue. How did you solve this?

@realachiever
Copy link

@saigkill I have the same issue.
If you found any solution, please let me know.

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

3 participants