From df0a70c44bc3c850f58593c8229a062de5a5a193 Mon Sep 17 00:00:00 2001 From: Toshiaki Asai Date: Sat, 30 Jul 2016 21:31:36 +0900 Subject: [PATCH] version 3.4.2 --- core/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.rb b/core/config.rb index 221f037..325434f 100644 --- a/core/config.rb +++ b/core/config.rb @@ -47,6 +47,6 @@ module CHIConfig NeverRetrieveOverlappedMumble = false # このソフトのバージョン。 - VERSION = [3,4,1,9999] + VERSION = [3,4,2,9999] end -- 1.8.4.2 From fa6dd69b7d0fc12c26191443ddd9530387bbaf63 Mon Sep 17 00:00:00 2001 From: EbiflyBB Date: Sun, 31 Jul 2016 15:43:37 +0900 Subject: [PATCH] =?UTF-8?q?vine=E3=81=AE=E3=81=95=E3=82=80=E3=81=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/plugin/photo_support/photo_support.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/plugin/photo_support/photo_support.rb b/core/plugin/photo_support/photo_support.rb index be6b0ac..4eebed5 100644 --- a/core/plugin/photo_support/photo_support.rb +++ b/core/plugin/photo_support/photo_support.rb @@ -202,4 +202,14 @@ Plugin.create :photo_support do img = Plugin::PhotoSupport.d250g2(display_url) open(img) if img end + + # vine + defimageopener('vine', %r<\Ahttps?://vine\.co/v/[a-zA-Z0-9]+>) do |display_url| + connection = HTTPClient.new + page = connection.get_content(display_url) + next nil if page.empty? + doc = Nokogiri::HTML(page) + result = doc.css('meta[property="twitter:image:src"]') + open(result.attribute('content').value) + end end -- 1.8.4.2