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

Syntax error by using the code #3

Open
saigkill opened this issue Dec 26, 2013 · 0 comments
Open

Syntax error by using the code #3

saigkill opened this issue Dec 26, 2013 · 0 comments

Comments

@saigkill
Copy link

I'm used the code like:

FileUtils.cd("#{$musicdir}/#{$folder}") do
    audio = YoutubeDL::Downloader.download_audio("#{$url}", location=".")
  end
sh: -c: Zeile 0: Syntaxfehler beim unerwarteten Wort `('
sh: -c: Zeile 0: `/home/sascha/.rvm/gems/ruby-2.0.0-p353/gems/ruby-youtube-dl-0.0.5/bin/youtube-dl.py --no-progress --extract-audio --audio-format=mp3 --output=.%(stitle)s-%(uploader)s-%(autonumber)s.mp3'
/home/sascha/.rvm/gems/ruby-2.0.0-p353/gems/ruby-youtube-dl-0.0.5/lib/ruby-youtube-dl/downloader.rb:9:in `download_audio': undefined method `[]' for nil:NilClass (NoMethodError)```

It looks like it doesn't extracr the %(stitle)s like templates.
Maybe it can be a solution to remove them from the code...
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

1 participant