fix parse
This commit is contained in:
parent
3298f0dc3b
commit
7e8da6436d
2
main.rb
2
main.rb
@ -5,7 +5,7 @@ require 'shellwords'
|
||||
|
||||
def parse_songs_from_string(mpd,message)
|
||||
urls = URI.extract(message)
|
||||
if urls != ""
|
||||
if urls.length != 0
|
||||
puts "Found #{urls}; downloading"
|
||||
urls.each do |url|
|
||||
res = `youtube-dl --ignore-errors --output \"spool/%(title)s.%(ext)s\" --extract-audio --audio-format mp3 #{url}`
|
||||
|
Loading…
Reference in New Issue
Block a user