From 7e8da6436d4b8ecd61f3e99473442e074e74dd88 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 19 Dec 2021 18:06:17 -0500 Subject: [PATCH] fix parse --- main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.rb b/main.rb index 516441e..9f6288b 100644 --- a/main.rb +++ b/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}`