opendmm 0.1.3 → 0.1.4

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: 9e83ee2686ab213368f0c679c30ea6b657b5c145
4
- data.tar.gz: 90164c5098103b344aeaf2ba3ae9329c89de3d84
3
+ metadata.gz: a6ea973455b774abc19e51008836971866daac43
4
+ data.tar.gz: 6c38bdafae17d2f0babc4a962fa405601ae235ee
5
5
  SHA512:
6
- metadata.gz: 6817c9efe2d148b395963e8fcb645f445d7bab34c69fca8e3bc20402139c7a63bf85bd73c325a7132f8e8c06fac03d294a7dbe8dd56bd069525e71f59138d610
7
- data.tar.gz: 3c5824c3b2ff03b14f5bfb116075bc0c0c1652839d064f23f50ac9716818b6ef4b16dcf963db6420131113733d0320cb81aa339fcc54129d6ed1d6c07d0a7a9b
6
+ metadata.gz: 15834035612a443ac0ece31c4b907ab9d2e50bdee73302327bc4ab31ac1f036a09c751a03c6af33843ab94751336a99cfae03505837bb6eb518c77dd74eca6f4
7
+ data.tar.gz: 8d7d852fe2f8b9271b476b646fc885ad0ce7fb6f94827cc4a423463fec24fa4c586a6ea35f305621d038043447834230cb82dfc0c8234b74fc632f579a259b26
@@ -0,0 +1,53 @@
1
+ module OpenDMM
2
+ module Maker
3
+ module RanMaru
4
+ include Maker
5
+
6
+ module Site
7
+ include HTTParty
8
+ base_uri 'ran-maru.com'
9
+
10
+ def self.item(name)
11
+ case name
12
+ when /^(TYOD)-?(\d{3})$/i
13
+ get("/works/#{$1.downcase}/#{$1.downcase}#{$2}.html")
14
+ end
15
+ end
16
+ end
17
+
18
+ module Parser
19
+ def self.parse(content)
20
+ page_uri = content.request.last_uri
21
+ html = Nokogiri::HTML(content)
22
+ specs = parse_specs(html)
23
+ return {
24
+ actresses: specs['女優名'].split('/'),
25
+ code: specs['品番'],
26
+ cover_image: html.at_css('#works > div > div.works-box > div.left-box > dl > dt > a')['href'],
27
+ description: specs[:description],
28
+ genres: specs['ジャンル'].split('/'),
29
+ maker: '乱丸',
30
+ movie_length: specs['収録時間'],
31
+ page: page_uri.to_s,
32
+ release_date: specs['発売日'],
33
+ thumbnail_image: html.at_css('#works > div > div.works-box > div.left-box > dl > dt > a > img')['src'],
34
+ title: html.css('#works > div > div.date-unit > h2').text,
35
+ }
36
+ end
37
+
38
+ private
39
+ def self.parse_specs(html)
40
+ root = html.css('#works > div > div.works-box > div.left-box > dl > dd > p')
41
+ groups = root.children.to_a.split do |delimeter|
42
+ delimeter.name == 'br'
43
+ end.map do |group|
44
+ group.map(&:text).join
45
+ end
46
+ Utils.hash_by_split(groups).tap do |specs|
47
+ specs[:description] = groups.last
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -1,3 +1,3 @@
1
1
  module OpenDMM
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -0,0 +1,21 @@
1
+ {
2
+ "actresses": [
3
+ "夏目優希",
4
+ "まりか",
5
+ "上原亜衣",
6
+ "朝倉ことみ"
7
+ ],
8
+ "code": "TYOD232",
9
+ "cover_image": "http://ran-maru.com/images/works/tyod232/tyod232pl.jpg",
10
+ "description": "エンドレス潮吹きお姉さん・夏目優希!アメリカ帰りのポルノスター・まりか!みんなの妹永遠の17歳・朝倉ことみ!ナンバーワンAV女優・上原亜衣!一見、タイプの違う女優達・・・。彼女たちの共通点は「AVを極めた」ということ!そんな極めAV女優たちが繰り広げる快楽の宴!見たことの無い個性の集合体が化学反応を起こす!エロエンターテインメントショーをご堪能下さい!",
11
+ "genres": [
12
+ "共演・乱交",
13
+ "潮吹き"
14
+ ],
15
+ "maker": "乱丸",
16
+ "movie_length": 10800,
17
+ "page": "http://ran-maru.com/works/tyod/tyod232.html",
18
+ "release_date": "2014-07-19",
19
+ "thumbnail_image": "http://ran-maru.com/images/works/tyod232/tyod232pm.jpg",
20
+ "title": "淫乱大乱交"
21
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opendmm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Zhou
@@ -151,6 +151,7 @@ files:
151
151
  - lib/opendmm/makers/oppai.rb
152
152
  - lib/opendmm/makers/premium.rb
153
153
  - lib/opendmm/makers/prestige.rb
154
+ - lib/opendmm/makers/ran_maru.rb
154
155
  - lib/opendmm/makers/s1.rb
155
156
  - lib/opendmm/makers/s_cute.rb
156
157
  - lib/opendmm/makers/sod.rb
@@ -296,6 +297,7 @@ files:
296
297
  - test/fixtures/TMEM-044.json
297
298
  - test/fixtures/TMVI-042.json
298
299
  - test/fixtures/TRD-062.json
300
+ - test/fixtures/TYOD-232.json
299
301
  - test/fixtures/URE-011.json
300
302
  - test/fixtures/WA-201.json
301
303
  - test/fixtures/WAT-003.json
@@ -466,6 +468,7 @@ test_files:
466
468
  - test/fixtures/TMEM-044.json
467
469
  - test/fixtures/TMVI-042.json
468
470
  - test/fixtures/TRD-062.json
471
+ - test/fixtures/TYOD-232.json
469
472
  - test/fixtures/URE-011.json
470
473
  - test/fixtures/WA-201.json
471
474
  - test/fixtures/WAT-003.json