opendmm 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bee38efac7fe1e375ec4e3db0452ca3d1d9a727c
4
- data.tar.gz: c5e6b7e61aa3ce4ae11eaab402121e839735721e
3
+ metadata.gz: 39e39fe809b8ee48e7b2d1f47e2f557b45dac62b
4
+ data.tar.gz: 78cb2c2b95eb87c48b1bba13d75da1e2f7e5b111
5
5
  SHA512:
6
- metadata.gz: 057c0a8ffc3810dd11ef2817cad54076a3869f28d760ea1fdf2a46e892deb82ebe4535ac2bfff41bcfb7a2c6592ac76ea86bfff68c78cfc0bf17197efc8afcee
7
- data.tar.gz: 5d145368441c3fefe4432983fff6af7a728d3ee9d7834e9e1badd222cbbd1b03ddadc8ff0dd4f183c97f2a5acb4f2681c8d56ffc693809dcfd7e7bfdd9424db0
6
+ metadata.gz: f9cb82ef97726301fee77b2b66e3ff2a09cf931be4b6b87bf55ab20d422df43e1097bc3c588b6dfc05342b60fdaced95cd88a5b19904b2a7768b7854e5fb5d88
7
+ data.tar.gz: bea5ff254771f0a680ba75ebe0e092e9ddd97236305c965eb239a728639bf32b4634aa0052eaa9d8304e0abcf6fa0ca63c028a789e0845510e9c01fd461875e8
data/README.md CHANGED
@@ -1,8 +1,92 @@
1
1
  [![Build Status](https://travis-ci.org/opendmm/opendmm.svg)](https://travis-ci.org/opendmm/opendmm)
2
2
 
3
- # Welcome to OpenDMM
3
+ # What?
4
4
 
5
- OpenDMM provides a free alternative of [DMM](http://www.dmm.co.jp) to search Japanese AV.
5
+ In short, given an AV's ID, OpenDMM fetch the detailed information for you.
6
+
7
+ It's a ruby gem so you can use it anywhere in you code:
8
+
9
+ irb(main):001:0> require 'opendmm'
10
+ => true
11
+ irb(main):002:0> OpenDMM.search 'ABP-123'
12
+ => {:actresses=>["酒井 ももか"], :code=>"ABP-123", :cover_image=>"http://www.prestige-av.com/images/corner/goods/prestige/abp/123/pb_e_abp-123.jpg", :description=>"通販限定商品!未公開映像収録DVDの特典付き商品です。本数限定となりますのでお早めにお求め下さい!!プレステージ専属女優 『酒井 ももか』 が新人泡姫に!可愛い顔で落ち着いた空間を演出して、ゆっくりとした時間の流れを作ってお客様に満足頂けるサービスをご提供!感じる個所を的確に責めて気持ち良くフィニッシュに導くシーンは見逃せません!硬くなったチ○コと交わり、夢心地で快感を堪能 してイク・・・。", :genres=>["玩具責め", "女優", "アナル舐め", "通販限定"], :label=>"ABSOLUTELY PERFECT", :maker=>"プレステージ", :movie_length=>8400, :page=>"http://www.prestige-av.com/goods/goods_detail.php?sku=ABP-123", :release_date=>#<Date: 2014-04-01 ((2456749j,0s,0n),+0s,2299161j)>, :sample_images=>["http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_0_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_1_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_2_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_3_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_4_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_5_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_6_abp-123.jpg", "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_7_abp-123.jpg"], :series=>"満足度満点ソープ", :thumbnail_image=>"http://www.prestige-av.com/images/corner/goods/prestige/abp/123/pf_p_abp-123.jpg", :title=>"酒井ももか 満足度満点新人ソープDX+未公開映像DVD付き"}
13
+
14
+ A command line tool is also provided:
15
+
16
+ $ opendmm --json 'ABP-123'
17
+ {
18
+ "actresses": [
19
+ "酒井 ももか"
20
+ ],
21
+ "code": "ABP-123",
22
+ "cover_image": "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/pb_e_abp-123.jpg",
23
+ "description": "通販限定商品!未公開映像収録DVDの特典付き商品です。本数限定となりますのでお早めにお求め下さい!!プレステージ専属女優 『酒井 ももか』 が新人泡姫に!可愛い顔で落ち着いた空間を演出して、ゆっくりとした時間の流れを作ってお客様に満足頂けるサービスをご提供!感じる個所を的確に責めて気持ち良くフィニッシュに導くシーンは見逃せません!硬くなったチ○コと交わり、夢心地で快感を堪能してイク・・・。",
24
+ "genres": [
25
+ "玩具責め",
26
+ "女優",
27
+ "アナル舐め",
28
+ "通販限定"
29
+ ],
30
+ "label": "ABSOLUTELY PERFECT",
31
+ "maker": "プレステージ",
32
+ "movie_length": 8400,
33
+ "page": "http://www.prestige-av.com/goods/goods_detail.php?sku=ABP-123",
34
+ "release_date": "2014-04-01",
35
+ "sample_images": [
36
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_0_abp-123.jpg",
37
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_1_abp-123.jpg",
38
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_2_abp-123.jpg",
39
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_3_abp-123.jpg",
40
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_4_abp-123.jpg",
41
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_5_abp-123.jpg",
42
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_6_abp-123.jpg",
43
+ "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/cap_e_7_abp-123.jpg"
44
+ ],
45
+ "series": "満足度満点ソープ",
46
+ "thumbnail_image": "http://www.prestige-av.com/images/corner/goods/prestige/abp/123/pf_p_abp-123.jpg",
47
+ "title": "酒井ももか 満足度満点新人ソープDX+未公開映像DVD付き"
48
+ }
49
+
50
+ # Why?
51
+
52
+ [DMM](www.dmm.co.jp) is the obvious choice when this kind of use cases come to your mind, which do have an [API](https://affiliate.dmm.com/api/reference/r18/all/) available.
53
+
54
+ Although it's widely used by many AV sites, it's not that easy to use when it comes to personal usage. Because in order to use it you have to register your site and get approval.
55
+
56
+ So I build this tool, to provide an easy-to-use alternative. It also provides more accurate result, which you can see from the "How?" section.
57
+
58
+ ## Where it excels?
59
+
60
+ Give these a try:
61
+
62
+ $ opendmm "S-Cute 352_kokona_02"
63
+ $ opendmm SIRO-1088
64
+ $ opendmm "Carib 021511-620"
65
+
66
+ Then try search them on DMM, or use DMM API if you have an app key.
67
+
68
+ It also provides you more detailed information than DMM if you noticed. For example, did you see the `sample_images` part in the example json above?
69
+
70
+ # How?
71
+
72
+ ## How to use?
73
+
74
+ gem install opendmm
75
+
76
+ ## How does it work?
77
+
78
+ 1. It will try fetch information from official maker site first, which should have the most accurate and comprehensive information, for example sample images. Currently only a few makers' sites are supported, but more and more is coming.
79
+ 2. As backup, if step 1 fails. It will try several existing search engines. For now we have:
80
+ * [JavLibrary](www.javlibrary.com)
81
+ * [DMM](www.dmm.co.jp)
82
+ * [MGStage](www.mgstage.com)
83
+ * [AvEntertainments](www.aventertainments.com)
84
+
85
+ # You can help
86
+
87
+ Feel free to report errors or request support for maker's site. Just [file a Issue](https://github.com/opendmm/opendmm/issues).
88
+
89
+ You can see current developing plan including makers planed to support on [Trello](https://trello.com/b/Q3P91c7N/opendmm).
6
90
 
7
91
  # License
8
92
 
@@ -18,9 +18,9 @@ module OpenDMM
18
18
  # genres: Array
19
19
  # label: String
20
20
  # maker: String
21
- # movie_length: String
21
+ # movie_length: Fixnum
22
22
  # page: String
23
- # release_date: String
23
+ # release_date: Date
24
24
  # sample_images: Array
25
25
  # scatologies: Array
26
26
  # scenes: Array
@@ -37,6 +37,7 @@ module OpenDMM
37
37
  result = engine.search(name)
38
38
  return result if result
39
39
  end
40
+ nil
40
41
  rescue => e
41
42
  if debug
42
43
  puts e.inspect
@@ -1,3 +1,3 @@
1
1
  module OpenDMM
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -56,9 +56,9 @@ class FixtureTest < Minitest::Test
56
56
  end
57
57
  end
58
58
 
59
- { 'dmm' => 'OpenDMM::SearchEngine::Dmm',
59
+ { 'maker' => 'OpenDMM::Maker',
60
+ 'dmm' => 'OpenDMM::SearchEngine::Dmm',
60
61
  'jav_library' => 'OpenDMM::SearchEngine::JavLibrary',
61
- 'maker' => 'OpenDMM::Maker',
62
62
  'mgstage' => 'OpenDMM::SearchEngine::Mgstage' }.each do |category, klass|
63
63
  Dir[File.dirname(__FILE__) + "/#{category}_fixtures/*.json"].each do |file|
64
64
  name = File.basename(file, '.json')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opendmm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler