File: amazon.rb

package info (click to toggle)
hiki 0.8.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,796 kB
  • ctags: 1,736
  • sloc: ruby: 20,269; lisp: 926; sh: 269; makefile: 12
file content (78 lines) | stat: -rw-r--r-- 3,408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# Japanese resource of amazon plugin $Revision: 1.1 $
#
# Copyright (C) 2002 HAL99 <hal99@mtj.biglobe.ne.jp>
# You can redistribute it and/or modify it under GPL2.
#

#
# isbn_image_left: ꤷISBNνƤclass="left"ɽ
#   ѥ᥿:
#     asin:    ASINޤISBN(ɬ)
#     comment: (ά)
#
# isbn_image_right: ꤷISBNνƤclass="right"ɽ
#   ѥ᥿:
#     asin:    ASINޤISBN(ɬ)
#     comment: (ά)
#
# isbn_image: ꤷISBNνƤclass="amazon"ɽ
#     asin:    ASINޤISBN(ɬ)
#     comment: (ά)
#
# isbn: amazon˥ʤʰץС
#     asin:    ASINޤISBN(ɬ)
#     comment: (ɬ)
#
#   ASINȤϥޥȼξʴIDǤ
#   ҤISBNASINϤȽҤɽޤ
#
#   줾쾦ʲĤʤä
#       <a href="amazonΥڡ">̾</a>
#   Τ褦˾̾ɽޤ
#   ȤҤƤϾ̾ȤƤѤޤ
#
# tdiary.confˤ:
#   @options['amazon.aid']:      IDꤹ뤳ȤǡʬΥ
#                                ȥץѤǤޤ
#                                Υץ̤ѹǽǤ
#   @options['amazon.hideconf']: ̾ǥIDԲǽ
#                                ˤ硢trueꤷޤ
#   @options['amazon.proxy']:    host:post׷HTTP proxyꤹ
#                                ProxyͳAmazonξޤ
#   @options['amazon.imgsize']:  ɽ륤᡼Υꤷޤ
#                                (0:  1:  2:)
#   @options['amazon.hidename']: class="amazon"ΤȤ˾̾ɽ
#                                ʤ硢trueꤷޤ
#   @options['amazon.default_image_base']: ǥեȤΥ᡼Ǽ
#                                 URLꤷޤ̵ˤtDiary.org
#                                 ˤΤȤޤˤ
#                                 ץ饰amazonǥ쥯ȥˤPNG
#                                 ե򻲹ͤˤƲ
#   @options['amazon.nodefault']: ǥեȤΥ᡼ɽʤ
#                                 trueꤷޤ
#
#
# աϢ١www.amazon.co.jpΥȥץ
# ǧξѤƲ
#

@amazon_url = 'http://www.amazon.co.jp/exec/obidos/ASIN'
@amazon_ecs_url = 'http://webservices.amazon.co.jp/onca/xml'
@amazon_item_name = /^Amazon.co.jp (.*)<.*$/
@amazon_item_image = %r|(<img src="(http://images-jp\.amazon\.com/images/P/(.*MZZZZZZZ_?.jpg))".*?>)|i
@amazon_label_conf ='Amazon'
@amazon_label_aid = 'AmazonIDλ'
@amazon_label_aid_desc = 'ꤷʤˤϡtDiaryԤνͭIDꤵ줿ȤˤʤޤΤǤդ'
@amazon_label_imgsize = 'ɽ륤᡼Υ'
@amazon_label_large = '礭'
@amazon_label_regular = ''
@amazon_label_small = ''
@amazon_label_title = 'isbn_imageץ饰Ǿ̾'
@amazon_label_hide = 'ɽʤ'
@amazon_label_show = 'ɽ'
@amazon_label_notfound = '᡼ĤʤȤ'
@amazon_label_usetitle = '̾ɽ'
@amazon_label_usedefault = 'ǥեȤΥ᡼Ȥ'
@amazon_label_clearcache = 'åκ'
@amazon_label_clearcache_desc = '᡼ϢΥå(Amazonɽ̷⤬˻Ʋ)'