summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-09-15 11:40:44 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-09-15 11:40:44 +0200
commit16c921257d38522fd2930b1ee8d52675f0d4f1e0 (patch)
tree02e26a2f37e1f9da3c0aa09bc65334f4be3cbbdc /data/rbot/plugins
parenta3cf647e81d6fe2a516f2c15fe4632d58e6feba3 (diff)
youtube: not all urls have v= as first CGI param
Diffstat (limited to 'data/rbot/plugins')
-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 01f494d1..aede86e8 100644
--- a/data/rbot/plugins/youtube.rb
+++ b/data/rbot/plugins/youtube.rb
@@ -12,7 +12,7 @@ class YouTubePlugin < Plugin
YOUTUBE_SEARCH = "http://gdata.youtube.com/feeds/api/videos?vq=%{words}&orderby=relevance"
YOUTUBE_VIDEO = "http://gdata.youtube.com/feeds/api/videos/%{id}"
- YOUTUBE_VIDEO_URLS = %r{youtube.com/(?:watch\?v=|v/)(.*?)(&.*)?$}
+ YOUTUBE_VIDEO_URLS = %r{youtube.com/(?:watch\?(?:.*&)?v=|v/)(.*?)(&.*)?$}
Config.register Config::IntegerValue.new('youtube.hits',
:default => 3,