機能 #861 » patch.diff
core/config.rb | ||
---|---|---|
47 | 47 |
NeverRetrieveOverlappedMumble = false |
48 | 48 | |
49 | 49 |
# このソフトのバージョン。 |
50 |
VERSION = [3,4,1,9999]
|
|
50 |
VERSION = [3,4,2,9999]
|
|
51 | 51 | |
52 | 52 |
end |
53 |
- |
core/plugin/photo_support/photo_support.rb | ||
---|---|---|
202 | 202 |
img = Plugin::PhotoSupport.d250g2(display_url) |
203 | 203 |
open(img) if img |
204 | 204 |
end |
205 |
|
|
206 |
# vine |
|
207 |
defimageopener('vine', %r<\Ahttps?://vine\.co/v/[a-zA-Z0-9]+>) do |display_url| |
|
208 |
connection = HTTPClient.new |
|
209 |
page = connection.get_content(display_url) |
|
210 |
next nil if page.empty? |
|
211 |
doc = Nokogiri::HTML(page) |
|
212 |
result = doc.css('meta[property="twitter:image:src"]') |
|
213 |
open(result.attribute('content').value) |
|
214 |
end |
|
205 | 215 |
end |