diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-10-12 17:05:21 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-10-12 17:05:21 +0200 |
commit | e327a8c418759208a6cd0cab974737af6d1897eb (patch) | |
tree | 86c37e632677b2ae8fca5c9cea6414ebc328e803 /data/rbot/plugins/youtube.rb | |
parent | 1ff425a02303bf84743eb489487172f55082e384 (diff) |
youtube: fix detection of video pages
Diffstat (limited to 'data/rbot/plugins/youtube.rb')
-rw-r--r-- | data/rbot/plugins/youtube.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/youtube.rb b/data/rbot/plugins/youtube.rb index 49d33726..01f494d1 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? '<link rel="alternate" type="text/xml+oembed"' 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 |