-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
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:
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels