Use videos instead of DB[:videos]
This commit is contained in:
parent
99e5ea11a2
commit
e7c0d884f8
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ videos=DB[:videos]
|
||||||
open(options[:feed]) do |rss|
|
open(options[:feed]) do |rss|
|
||||||
feed=RSS::Parser.parse(rss)
|
feed=RSS::Parser.parse(rss)
|
||||||
feed.items.each do |item|
|
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
|
next
|
||||||
end
|
end
|
||||||
video=YoutubeDL.download "#{item.link}"
|
video=YoutubeDL.download "#{item.link}"
|
||||||
|
|
Reference in a new issue