lib/Zeta/plugins/snooper.rb in zetabot-0.0.11 vs lib/Zeta/plugins/snooper.rb in zetabot-0.0.12
- old
+ new
@@ -62,9 +62,12 @@
# debug "URL matched: #{url}"
# Parse URI
p = URI(url)
+ # Disregaurd on blacklist
+ return if Blacklist.urls.include? p.host
+
# API key lookup
VideoInfo.provider_api_keys = { youtube: Config.secrets[:google] }
# Parse out specific websites
if p.host == 'youtube.com' || p.host == 'www.youtube.com' || p.host == 'youtu.be'