summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-09-15 15:26:19 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-09-15 15:26:19 +0200
commit501e90085ef5889036899a006796c13110255fe6 (patch)
tree53c94087215075bec197cff41b5038d87fbbf298 /data
parent941deba9bc3943f1bfcce524c7ac2ec0f270b2ec (diff)
tumblr: embed Vimeo videos
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/tumblr.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/tumblr.rb b/data/rbot/plugins/tumblr.rb
index ee19ba23..e164257e 100644
--- a/data/rbot/plugins/tumblr.rb
+++ b/data/rbot/plugins/tumblr.rb
@@ -9,7 +9,7 @@
#
# Submit URLs to channel-specific tumblr accounts
#
-# TODO support video better (e.g. Vimeo or anything else with embed)
+# TODO support other video providers (maybe detect embed codes?)
# TODO support image better (e.g. pages with a single big image)
# TODO customize caption/description format
# TODO do not reblog own posts (maybe?)
@@ -97,7 +97,7 @@ class TumblrPlugin < Plugin
data = PHOTO
data << CAPTION if line
else
- if url.match(%r{^http://(\w+\.)?youtube\.com/watch.*})
+ if url.match(%r{^http://(\w+\.)?(youtube\.com/watch.*|vimeo.com/\d+)})
data = VIDEO
data << CAPTION if line
else