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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javdict",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "AV番号命令行查询工具",
5
5
  "main": "./index.js",
6
6
  "type": "module",
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" languageLevel="JDK_24" project-jdk-name="21" project-jdk-type="JavaSDK">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/AvDict.iml" filepath="$PROJECT_DIR$/AvDict.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
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>