環境対応 #596 » openimg-20130703.diff
core/plugin/openimg/openimg.rb | ||
---|---|---|
207 | 207 |
t = fetch(url) |
208 | 208 |
/^(http:\/\/[^\/]+\/)post(\/\d+)/ =~ t |
209 | 209 |
if $~ |
210 |
imgurlresolver($1 + "image" + $2, 'id' => 'image') |
|
210 |
imgurlresolver($1 + "image" + $2, 'id' => 'content-image')
|
|
211 | 211 |
else |
212 | 212 |
warn "たんぶらの記事ページじゃないっぽい" |
213 | 213 |
nil |
core/plugin/openimg/pattern_file.json | ||
---|---|---|
110 | 110 |
"Tumblr image": { |
111 | 111 |
"url": "^http://[-0-9a-z]+\\.tumblr\\.com/image/\\d+", |
112 | 112 |
"attribute": { |
113 |
"id": "image" |
|
113 |
"id": "content-image"
|
|
114 | 114 |
} |
115 | 115 |
}, |
116 | 116 |
"はてなフォトライフ": { |
... | ... | |
154 | 154 |
"attribute": { |
155 | 155 |
"class": "photo_frame kadomaru" |
156 | 156 |
} |
157 |
}, |
|
158 |
"フォト蔵": { |
|
159 |
"url": "^http://photozou\\.jp/photo/show/\\d+/\\d+", |
|
160 |
"attribute": { |
|
161 |
"itemprop": "image" |
|
162 |
} |
|
157 | 163 |
} |
158 | ||
159 | 164 |
} |