Use videos instead of DB[:videos]

This commit is contained in:
George Kaklamanos 2018-04-29 23:42:41 +03:00
parent 99e5ea11a2
commit e7c0d884f8

View file

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