fix parse

This commit is contained in:
stryan 2021-12-19 18:06:17 -05:00
parent 3298f0dc3b
commit 7e8da6436d
1 changed files with 1 additions and 1 deletions

View File

@ -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}`