From e7c0d884f8706efb23918e1e0e8f2d7c340d1b21 Mon Sep 17 00:00:00 2001 From: George Kaklamanos Date: Sun, 29 Apr 2018 23:42:41 +0300 Subject: [PATCH] Use videos instead of DB[:videos] --- script.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.rb b/script.rb index 78f28a5..9e7e7a7 100644 --- a/script.rb +++ b/script.rb @@ -35,7 +35,7 @@ videos=DB[:videos] open(options[:feed]) do |rss| feed=RSS::Parser.parse(rss) feed.items.each do |item| - if not DB[:videos].where(:url => "#{item.link}").count.eql? 0 + if not videos.where(:url => "#{item.link}").count.eql? 0 next end video=YoutubeDL.download "#{item.link}"