opendmm 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/opendmm/makers/opera.rb +14 -14
- data/lib/opendmm/version.rb +1 -1
- data/lib/opendmm.rb +24 -24
- data/test/maker_fixtures/OPUD-001.json +1 -1
- data/test/maker_fixtures/OPUD-125.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e9469c9af6cf9aa7f0db4291da77e9ce73c6821
|
4
|
+
data.tar.gz: d9f5448caa0d97e1263a1e03ec99279e143b14fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f18c768cc15948f303a38a528866cdf33fcc79052f69928e064b91435d4a63e5e1ad5e2dfff054f1682fc80db04aa11c85eb3143ab23ebe616ede6259866dd15
|
7
|
+
data.tar.gz: aa7cdcc1206dc03b309df8bb89e02ba93333eb88f4e683c9e4406f4612241e8e02ba16e4d7ce00d575e9c6429000c4c07ac6da0d20a028d8895e63148601ce40
|
data/lib/opendmm/makers/opera.rb
CHANGED
@@ -11,19 +11,19 @@ def self.parse_product_html(html)
|
|
11
11
|
specs = Utils.hash_from_dl(html.css('#container-detail > div.pkg-data > div.data > dl.left-data')).merge(
|
12
12
|
Utils.hash_from_dl(html.css('#container-detail > div.pkg-data > div.data > dl.right-data')))
|
13
13
|
{
|
14
|
-
actresses:
|
15
|
-
cover_image:
|
16
|
-
description:
|
17
|
-
directors:
|
18
|
-
genres:
|
19
|
-
maker:
|
20
|
-
movie_length:
|
21
|
-
release_date:
|
22
|
-
sample_images:
|
23
|
-
|
24
|
-
series:
|
25
|
-
thumbnail_image:
|
26
|
-
title:
|
27
|
-
|
14
|
+
actresses: specs['出演女優'].css('a').map(&:text),
|
15
|
+
cover_image: html.at_css('div#container-detail > div.pkg-data > div.pkg > a > img')['src'].gsub(/pm.jpg$/, 'pl.jpg'),
|
16
|
+
description: html.css('#container-detail > div.pkg-data > div.comment-data').text,
|
17
|
+
directors: specs['監督'].css('a').map(&:text),
|
18
|
+
genres: specs['ジャンル'].css('a').map(&:text),
|
19
|
+
maker: 'Opera',
|
20
|
+
movie_length: specs['収録時間'].text,
|
21
|
+
release_date: specs['発売日'].text,
|
22
|
+
sample_images: html.css('#sample-pic > li > a > img').map { |img| img['src'].gsub(/js(?=-\d+\.jpg$)/, "jl") },
|
23
|
+
scatologies: specs['スカトロ'].css('a').map(&:text),
|
24
|
+
series: specs['シリーズ'].text.remove(':'),
|
25
|
+
thumbnail_image: html.at_css('div#container-detail > div.pkg-data > div.pkg > a > img')['src'],
|
26
|
+
title: html.xpath('//*[@id="container-detail"]/p[1]').text,
|
27
|
+
transsexualities: specs['ニューハーフ'].css('a').map(&:text),
|
28
28
|
}
|
29
29
|
end
|
data/lib/opendmm/version.rb
CHANGED
data/lib/opendmm.rb
CHANGED
@@ -6,30 +6,30 @@ module OpenDMM
|
|
6
6
|
# Known fields:
|
7
7
|
#
|
8
8
|
# {
|
9
|
-
# actresses:
|
10
|
-
# actress_types:
|
11
|
-
# boobs:
|
12
|
-
# brand:
|
13
|
-
# categories:
|
14
|
-
# code:
|
15
|
-
# cover_image:
|
16
|
-
# description:
|
17
|
-
# directors:
|
18
|
-
# genres:
|
19
|
-
# label:
|
20
|
-
# maker:
|
21
|
-
# movie_length:
|
22
|
-
# page:
|
23
|
-
# release_date:
|
24
|
-
# sample_images:
|
25
|
-
#
|
26
|
-
# scenes:
|
27
|
-
# series:
|
28
|
-
# subtitle:
|
29
|
-
# theme:
|
30
|
-
# thumbnail_image:
|
31
|
-
# title:
|
32
|
-
#
|
9
|
+
# actresses: Array
|
10
|
+
# actress_types: Array
|
11
|
+
# boobs: String
|
12
|
+
# brand: String
|
13
|
+
# categories: Array
|
14
|
+
# code: String
|
15
|
+
# cover_image: String
|
16
|
+
# description: String
|
17
|
+
# directors: Array
|
18
|
+
# genres: Array
|
19
|
+
# label: String
|
20
|
+
# maker: String
|
21
|
+
# movie_length: String
|
22
|
+
# page: String
|
23
|
+
# release_date: String
|
24
|
+
# sample_images: Array
|
25
|
+
# scatologies: Array
|
26
|
+
# scenes: Array
|
27
|
+
# series: String
|
28
|
+
# subtitle: String
|
29
|
+
# theme: String
|
30
|
+
# thumbnail_image: String
|
31
|
+
# title: String
|
32
|
+
# transsexualities: Array
|
33
33
|
# }
|
34
34
|
|
35
35
|
def self.search(name, debug = false)
|