summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/youtube.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-03-08 20:38:47 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-03-09 20:31:38 +0100
commit6c0c869e08dd790cd8ffea15514e73d62aadb1ec (patch)
treed9d5a7b895d5479e5f052059dad87151db73282d /data/rbot/plugins/youtube.rb
parent42704b6f5ab3ed9c3451b7fabee40d51d048a76f (diff)
youtube: fix video page detection in htmlfilter
Diffstat (limited to 'data/rbot/plugins/youtube.rb')
-rw-r--r--data/rbot/plugins/youtube.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/youtube.rb b/data/rbot/plugins/youtube.rb
index 40922b7d..6d3248d9 100644
--- a/data/rbot/plugins/youtube.rb
+++ b/data/rbot/plugins/youtube.rb
@@ -27,7 +27,7 @@ class YouTubePlugin < Plugin
def youtube_filter(s)
loc = Utils.check_location(s, /youtube\.com/)
return nil unless loc
- if s[:text].include? '<div id="watch-vid-title">'
+ if s[:text].include? '<div id="watch-vid-title"'
vid = @bot.filter(:"youtube.video", s)
return nil unless vid
content = _("Category: %{cat}. Rating: %{rating}. Author: %{author}. Duration: %{duration}. %{views} views, faved %{faves} times. %{desc}") % vid