After installing the gem , then push the code to heroku,
heroku run rails c --app <my_app_name>
YoutubeDL.download "https://www.youtube.com/watch?v=gvdf5n-zI14"
Terrapin::ExitStatusError: Command '/app/vendor/bundle/ruby/2.4.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=gvdf5n-zI14"' returned 1. Expected 0
Here is the command output: STDOUT:
STDERR:
ERROR: gvdf5n-zI14: YouTube said: Invalid parameters.