環境対応 #562 » openimg-20130123.diff.txt
1 |
Index: core/plugin/openimg/pattern_file.json |
---|---|
2 |
=================================================================== |
3 |
--- core/plugin/openimg/pattern_file.json (リビジョン 1120) |
4 |
+++ core/plugin/openimg/pattern_file.json (作業コピー) |
5 |
@@ -86,10 +86,7 @@ |
6 |
"attribute": { |
7 |
"tag": "meta", |
8 |
"attribute": "content", |
9 |
- "content": { |
10 |
- "json_class": "Regexp", |
11 |
- "data": "^http://img\\.viame-cdn\\.com/photos/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+/s600x600\\.jpg" |
12 |
- } |
13 |
+ "property": "og:image" |
14 |
} |
15 |
}, |
16 |
"twitgoo": { |
17 |
@@ -121,5 +118,33 @@ |
18 |
"attribute": "src", |
19 |
"class": "foto" |
20 |
} |
21 |
+ }, |
22 |
+ "imgur": { |
23 |
+ "url": "http://imgur\\.com(/gallery)?/\\w+", |
24 |
+ "attribute": { |
25 |
+ "tag": "link", |
26 |
+ "rel": "image_src", |
27 |
+ "attribute": "href" |
28 |
+ } |
29 |
+ }, |
30 |
+ "Fotolog": { |
31 |
+ "url": "http://fotolog\\.cc/\\w+", |
32 |
+ "attribute": { |
33 |
+ "tag": "meta", |
34 |
+ "property": "og:image", |
35 |
+ "attribute": "content" |
36 |
+ } |
37 |
+ }, |
38 |
+ "Danbooru": { |
39 |
+ "url": "http://((danbooru|hijiribe)\\.donmai\\.us|chan\\.sankakucomplex\\.com|konachan.com)/post/show/\\d+", |
40 |
+ "attribute": { |
41 |
+ "id": "image" |
42 |
+ } |
43 |
+ }, |
44 |
+ "Danbooru old ver": { |
45 |
+ "url": "http://(lolibooru\\.com|gelbooru\\.com)/index\.php\\?page=post&s=view&id=\\d+", |
46 |
+ "attribute": { |
47 |
+ "id": "image" |
48 |
+ } |
49 |
} |
50 |
} |