javdict 1.2.11 → 1.2.12
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.
- package/lib/display.js +2 -0
- package/lib/fetcher.js +2 -0
- package/package.json +1 -1
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/AvDict.iml +0 -8
package/lib/display.js
CHANGED
|
@@ -37,6 +37,8 @@ export function display(info, raw = false) {
|
|
|
37
37
|
row('发行商', info.label);
|
|
38
38
|
row('导演', info.director);
|
|
39
39
|
row('系列', info.series);
|
|
40
|
+
row('评分', info.score ? `${info.score}${info.scoreCount ? `(${info.scoreCount}人评价)` : ''}` : '', chalk.yellow);
|
|
41
|
+
row('想看', info.wantCount ? `${info.wantCount} 人想看` : '', chalk.cyan);
|
|
40
42
|
|
|
41
43
|
if (info.tags.length > 0) {
|
|
42
44
|
const tagStr = info.tags.map(t => chalk.bgGray(` ${t} `)).join(' ');
|
package/lib/fetcher.js
CHANGED
|
@@ -279,6 +279,8 @@ function parseJavdb(html, queryId) {
|
|
|
279
279
|
tags: [],
|
|
280
280
|
coverUrl: $('.video-cover img').attr('src') || '',
|
|
281
281
|
score: $('.score .value').first().text().trim(),
|
|
282
|
+
scoreCount: ($('.score .value').first().text().match(/由(\d+)人/) || [])[1] || '',
|
|
283
|
+
wantCount: ($('.panel-block:last .is-size-7').text().match(/(\d+)人想看/) || [])[1] || '',
|
|
282
284
|
};
|
|
283
285
|
|
|
284
286
|
$('.movie-panel-info .panel-block').each((_, el) => {
|
package/package.json
CHANGED
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/vcs.xml
DELETED
package/AvDict.iml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="GENERAL_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|