javdict 1.3.1 → 1.3.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.
@@ -0,0 +1,35 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "master" ]
6
+ pull_request:
7
+ branches: [ "master" ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ node-version: [18.x, 20.x, 22.x] # 你的项目要求 >=18,只测这三个就够
16
+
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: ${{ matrix.node-version }}
25
+ cache: 'npm' # 加速依赖下载
26
+
27
+ - name: Install dependencies
28
+ run: npm ci
29
+
30
+ - name: Run tests
31
+ run: npm test
32
+
33
+ # 如果你以后加了 ESLint / Prettier,可以在这里加
34
+ # - name: Lint
35
+ # run: npm run lint
@@ -0,0 +1,46 @@
1
+ name: Release
2
+
3
+ # 只有推送 v 开头的 tag 时才触发(例如 v1.2.3)
4
+ on:
5
+ push:
6
+ tags:
7
+ - 'v*'
8
+
9
+ jobs:
10
+ release:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write # 必须,用于创建 Release
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0 # 获取完整历史,方便生成 release notes
20
+
21
+ # 1. 设置 Node.js + npm 发布配置
22
+ - name: Setup Node.js
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: 20
26
+ registry-url: 'https://registry.npmjs.org'
27
+ cache: 'npm'
28
+
29
+ # 2. 安装依赖
30
+ - name: Install dependencies
31
+ run: npm ci
32
+
33
+ # 3. 自动创建 GitHub Release(带自动生成的 Release Notes)
34
+ - name: Create GitHub Release
35
+ uses: ncipollo/release-action@v1
36
+ with:
37
+ tag: ${{ github.ref_name }}
38
+ name: ${{ github.ref_name }}
39
+ generateReleaseNotes: true
40
+ prerelease: ${{ contains(github.ref_name, '-') }} # 带 -beta / -rc 的自动设为预发布
41
+
42
+ # 4. 发布到 npm(只在正式 tag 时执行)
43
+ - name: Publish to npm
44
+ run: npm publish --access public
45
+ env:
46
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 gdjdkid
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gdjdkid
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.js CHANGED
@@ -1,94 +1,94 @@
1
- #!/usr/bin/env node
2
-
3
- import { createInterface } from 'readline';
4
- import { program } from 'commander';
5
- import { createRequire } from 'module';
6
- import { search } from './lib/fetcher.js';
7
- import { display } from './lib/display.js';
8
- import { clearCache, setConfig } from './lib/cache.js';
9
- import ora from 'ora';
10
- import chalk from 'chalk';
11
- import { getLang } from './lib/i18n.js';
12
-
13
- const require = createRequire(import.meta.url);
14
- const pkg = require('./package.json');
15
-
16
- program
17
- .name('jav')
18
- .description('AV番号命令行查询工具')
19
- .version(pkg.version, '-v, --version')
20
- .argument('[番号]', '要查询的番号,例如: SSIS-001')
21
- .option('-r, --raw', '显示原始详细数据')
22
- .option('--clear-cache', '清空本地缓存')
23
- .option('--setup', '配置JAVDB Cookie(可选,提高查询覆盖率)')
24
- .option('-l, --lang <lang>', '显示语言 zh/en/jp/kr/de', 'zh')
25
- .action(async (id, options) => {
26
-
27
- const lang = options.lang || 'zh';
28
- const t = getLang(lang); // 统一获取语言包
29
-
30
- if (options.setup) {
31
- console.log('');
32
- console.log(chalk.yellow('=== ' + (t.setupTitle || '配置 JAVDB Cookie(可选)') + ' ==='));
33
- console.log('');
34
- console.log(t.setupDesc || '不配置也可以正常使用,配置后覆盖率更高。');
35
- console.log('');
36
- console.log(t.setupSteps || '获取步骤:');
37
- console.log(' 1. ' + (t.setupStep1 || 'Chrome 打开 https://javdb.com 并登录账号'));
38
- console.log(' 2. ' + (t.setupStep2 || '安装插件 "Get cookies.txt LOCALLY"'));
39
- console.log(' 3. ' + (t.setupStep3 || '导出 Cookie 文件,找到 _jdb_session 那行'));
40
- console.log(' 4. ' + (t.setupStep4 || '复制最后一列的值粘贴到下面'));
41
- console.log('');
42
-
43
- const rl = createInterface({ input: process.stdin, output: process.stdout });
44
- await new Promise((resolve) => {
45
- rl.question(chalk.cyan((t.setupPrompt || '请粘贴 _jdb_session 的值(直接回车跳过): ')), (session) => {
46
- rl.close();
47
- if (!session.trim()) {
48
- console.log(chalk.gray('\n' + (t.setupSkipped || '已跳过,使用 JAVBUS + JavLibrary 作为数据源。')));
49
- } else {
50
- setConfig({ session: session.trim() });
51
- console.log(chalk.green('\n✅ ' + (t.setupSuccess || '配置保存成功!')));
52
- console.log(chalk.gray((t.setupSavePath || '保存位置: ~/.config/javinfo/config.json')));
53
- }
54
- console.log('');
55
- resolve();
56
- });
57
- });
58
- process.exit(0);
59
- }
60
-
61
- if (options.clearCache) {
62
- clearCache(lang);
63
- process.exit(0);
64
- }
65
-
66
- if (!id) {
67
- program.help();
68
- process.exit(0);
69
- }
70
-
71
- const spinner = ora(`${t.searching} ${id.toUpperCase()} ...`).start();
72
-
73
- try {
74
- const result = await search(id.toUpperCase(), lang);
75
- spinner.stop();
76
-
77
- if (!result) {
78
- console.log(chalk.red(`\n${t.notFound}: ${id.toUpperCase()}`));
79
- // Windows 用户提示
80
- if (process.platform === 'win32') {
81
- process.stderr.write(chalk.gray(` ${t.windowsHint}\n`));
82
- }
83
- process.exit(1);
84
- }
85
-
86
- display(result, options.raw, lang);
87
- } catch (err) {
88
- spinner.stop();
89
- console.error(`\n${t.queryFailed}:`, err.message);
90
- process.exit(1);
91
- }
92
- });
93
-
1
+ #!/usr/bin/env node
2
+
3
+ import { createInterface } from 'readline';
4
+ import { program } from 'commander';
5
+ import { createRequire } from 'module';
6
+ import { search } from './lib/fetcher.js';
7
+ import { display } from './lib/display.js';
8
+ import { clearCache, setConfig } from './lib/cache.js';
9
+ import ora from 'ora';
10
+ import chalk from 'chalk';
11
+ import { getLang } from './lib/i18n.js';
12
+
13
+ const require = createRequire(import.meta.url);
14
+ const pkg = require('./package.json');
15
+
16
+ program
17
+ .name('jav')
18
+ .description('AV番号命令行查询工具')
19
+ .version(pkg.version, '-v, --version')
20
+ .argument('[番号]', '要查询的番号,例如: SSIS-001')
21
+ .option('-r, --raw', '显示原始详细数据')
22
+ .option('--clear-cache', '清空本地缓存')
23
+ .option('--setup', '配置JAVDB Cookie(可选,提高查询覆盖率)')
24
+ .option('-l, --lang <lang>', '显示语言 zh/en/jp/kr/de', 'zh')
25
+ .action(async (id, options) => {
26
+
27
+ const lang = options.lang || 'zh';
28
+ const t = getLang(lang); // 统一获取语言包
29
+
30
+ if (options.setup) {
31
+ console.log('');
32
+ console.log(chalk.yellow('=== ' + (t.setupTitle || '配置 JAVDB Cookie(可选)') + ' ==='));
33
+ console.log('');
34
+ console.log(t.setupDesc || '不配置也可以正常使用,配置后覆盖率更高。');
35
+ console.log('');
36
+ console.log(t.setupSteps || '获取步骤:');
37
+ console.log(' 1. ' + (t.setupStep1 || 'Chrome 打开 https://javdb.com 并登录账号'));
38
+ console.log(' 2. ' + (t.setupStep2 || '安装插件 "Get cookies.txt LOCALLY"'));
39
+ console.log(' 3. ' + (t.setupStep3 || '导出 Cookie 文件,找到 _jdb_session 那行'));
40
+ console.log(' 4. ' + (t.setupStep4 || '复制最后一列的值粘贴到下面'));
41
+ console.log('');
42
+
43
+ const rl = createInterface({ input: process.stdin, output: process.stdout });
44
+ await new Promise((resolve) => {
45
+ rl.question(chalk.cyan((t.setupPrompt || '请粘贴 _jdb_session 的值(直接回车跳过): ')), (session) => {
46
+ rl.close();
47
+ if (!session.trim()) {
48
+ console.log(chalk.gray('\n' + (t.setupSkipped || '已跳过,使用 JAVBUS + JavLibrary 作为数据源。')));
49
+ } else {
50
+ setConfig({ session: session.trim() });
51
+ console.log(chalk.green('\n✅ ' + (t.setupSuccess || '配置保存成功!')));
52
+ console.log(chalk.gray((t.setupSavePath || '保存位置: ~/.config/javinfo/config.json')));
53
+ }
54
+ console.log('');
55
+ resolve();
56
+ });
57
+ });
58
+ process.exit(0);
59
+ }
60
+
61
+ if (options.clearCache) {
62
+ clearCache(lang);
63
+ process.exit(0);
64
+ }
65
+
66
+ if (!id) {
67
+ program.help();
68
+ process.exit(0);
69
+ }
70
+
71
+ const spinner = ora(`${t.searching} ${id.toUpperCase()} ...`).start();
72
+
73
+ try {
74
+ const result = await search(id.toUpperCase(), lang);
75
+ spinner.stop();
76
+
77
+ if (!result) {
78
+ console.log(chalk.red(`\n${t.notFound}: ${id.toUpperCase()}`));
79
+ // Windows 用户提示
80
+ if (process.platform === 'win32') {
81
+ process.stderr.write(chalk.gray(` ${t.windowsHint}\n`));
82
+ }
83
+ process.exit(1);
84
+ }
85
+
86
+ display(result, options.raw, lang);
87
+ } catch (err) {
88
+ spinner.stop();
89
+ console.error(`\n${t.queryFailed}:`, err.message);
90
+ process.exit(1);
91
+ }
92
+ });
93
+
94
94
  program.parse();
package/lib/cache.js CHANGED
@@ -1,82 +1,82 @@
1
- import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs';
2
- import { homedir } from 'os';
3
- import { join } from 'path';
4
- import { getLang } from './i18n.js';
5
-
6
- // 缓存文件存放在用户主目录下,和 yddict 的做法一致
7
- const CACHE_DIR = join(homedir(), '.config', 'javinfo');
8
- const CACHE_FILE = join(CACHE_DIR, 'cache.json');
9
-
10
- // 缓存有效期:7 天(单位毫秒)
11
- const TTL = 7 * 24 * 60 * 60 * 1000;
12
-
13
- function loadCache() {
14
- if (!existsSync(CACHE_FILE)) return {};
15
- try {
16
- return JSON.parse(readFileSync(CACHE_FILE, 'utf-8'));
17
- } catch {
18
- return {};
19
- }
20
- }
21
-
22
- function saveCache(data) {
23
- if (!existsSync(CACHE_DIR)) {
24
- mkdirSync(CACHE_DIR, { recursive: true });
25
- }
26
- writeFileSync(CACHE_FILE, JSON.stringify(data, null, 2), 'utf-8');
27
- }
28
-
29
- export function getCache(id) {
30
- const cache = loadCache();
31
- const entry = cache[id];
32
- if (!entry) return null;
33
-
34
- const isExpired = Date.now() - entry.cachedAt > TTL;
35
- if (isExpired) return null;
36
-
37
- return entry.data;
38
- }
39
-
40
- export function setCache(id, data) {
41
- const cache = loadCache();
42
- cache[id] = {
43
- cachedAt: Date.now(),
44
- data,
45
- };
46
- saveCache(cache);
47
- }
48
-
49
- // 清空缓存(已支持多语言)
50
- export function clearCache(lang = 'zh') {
51
- const t = getLang(lang);
52
-
53
- try {
54
- if (existsSync(CACHE_FILE)) {
55
- writeFileSync(CACHE_FILE, '{}', 'utf-8');
56
- console.log(t.cacheCleared);
57
- } else {
58
- console.log(t.cacheCleared);
59
- }
60
- } catch (err) {
61
- console.error(`${t.cacheClearFailed}: ${err.message}`);
62
- console.error(`${t.cachePath}: ${CACHE_FILE}`);
63
- }
64
- }
65
-
66
- export function getConfig() {
67
- const configFile = join(CACHE_DIR, 'config.json');
68
- if (!existsSync(configFile)) return {};
69
- try {
70
- return JSON.parse(readFileSync(configFile, 'utf-8'));
71
- } catch {
72
- return {};
73
- }
74
- }
75
-
76
- export function setConfig(data) {
77
- if (!existsSync(CACHE_DIR)) {
78
- mkdirSync(CACHE_DIR, { recursive: true });
79
- }
80
- const configFile = join(CACHE_DIR, 'config.json');
81
- writeFileSync(configFile, JSON.stringify(data, null, 2), 'utf-8');
1
+ import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs';
2
+ import { homedir } from 'os';
3
+ import { join } from 'path';
4
+ import { getLang } from './i18n.js';
5
+
6
+ // 缓存文件存放在用户主目录下,和 yddict 的做法一致
7
+ const CACHE_DIR = join(homedir(), '.config', 'javinfo');
8
+ const CACHE_FILE = join(CACHE_DIR, 'cache.json');
9
+
10
+ // 缓存有效期:7 天(单位毫秒)
11
+ const TTL = 7 * 24 * 60 * 60 * 1000;
12
+
13
+ function loadCache() {
14
+ if (!existsSync(CACHE_FILE)) return {};
15
+ try {
16
+ return JSON.parse(readFileSync(CACHE_FILE, 'utf-8'));
17
+ } catch {
18
+ return {};
19
+ }
20
+ }
21
+
22
+ function saveCache(data) {
23
+ if (!existsSync(CACHE_DIR)) {
24
+ mkdirSync(CACHE_DIR, { recursive: true });
25
+ }
26
+ writeFileSync(CACHE_FILE, JSON.stringify(data, null, 2), 'utf-8');
27
+ }
28
+
29
+ export function getCache(id) {
30
+ const cache = loadCache();
31
+ const entry = cache[id];
32
+ if (!entry) return null;
33
+
34
+ const isExpired = Date.now() - entry.cachedAt > TTL;
35
+ if (isExpired) return null;
36
+
37
+ return entry.data;
38
+ }
39
+
40
+ export function setCache(id, data) {
41
+ const cache = loadCache();
42
+ cache[id] = {
43
+ cachedAt: Date.now(),
44
+ data,
45
+ };
46
+ saveCache(cache);
47
+ }
48
+
49
+ // 清空缓存(已支持多语言)
50
+ export function clearCache(lang = 'zh') {
51
+ const t = getLang(lang);
52
+
53
+ try {
54
+ if (existsSync(CACHE_FILE)) {
55
+ writeFileSync(CACHE_FILE, '{}', 'utf-8');
56
+ console.log(t.cacheCleared);
57
+ } else {
58
+ console.log(t.cacheCleared);
59
+ }
60
+ } catch (err) {
61
+ console.error(`${t.cacheClearFailed}: ${err.message}`);
62
+ console.error(`${t.cachePath}: ${CACHE_FILE}`);
63
+ }
64
+ }
65
+
66
+ export function getConfig() {
67
+ const configFile = join(CACHE_DIR, 'config.json');
68
+ if (!existsSync(configFile)) return {};
69
+ try {
70
+ return JSON.parse(readFileSync(configFile, 'utf-8'));
71
+ } catch {
72
+ return {};
73
+ }
74
+ }
75
+
76
+ export function setConfig(data) {
77
+ if (!existsSync(CACHE_DIR)) {
78
+ mkdirSync(CACHE_DIR, { recursive: true });
79
+ }
80
+ const configFile = join(CACHE_DIR, 'config.json');
81
+ writeFileSync(configFile, JSON.stringify(data, null, 2), 'utf-8');
82
82
  }
package/lib/display.js CHANGED
@@ -1,62 +1,62 @@
1
- import chalk from 'chalk';
2
- import { getLang } from './i18n.js';
3
-
4
- const DIVIDER = chalk.gray('─'.repeat(60));
5
-
6
- function row(label, value, color = chalk.white) {
7
- if (!value || (Array.isArray(value) && value.length === 0)) return;
8
- const paddedLabel = chalk.cyan(label.padEnd(8, ' '));
9
- console.log(` ${paddedLabel} ${color(value)}`);
10
- }
11
-
12
- export function display(info, raw = false, lang = 'zh') {
13
- if (raw) {
14
- console.log(JSON.stringify(info, null, 2));
15
- return;
16
- }
17
-
18
- const t = getLang(lang);
19
-
20
- console.log('');
21
- console.log(DIVIDER);
22
- console.log(
23
- ' ' +
24
- chalk.bold.yellow('🎬 ') +
25
- chalk.bold.white(info.id) +
26
- (info.score ? chalk.yellow(` ⭐ ${info.score}`) : '')
27
- );
28
-
29
- if (info.title) {
30
- console.log(' ' + chalk.gray(info.title));
31
- }
32
-
33
- console.log(DIVIDER);
34
-
35
- row(t.actress, info.actresses.join(' / '), chalk.magenta);
36
- row(t.actor, info.actors.join(' / '), chalk.blue);
37
- row(t.releaseDate, info.releaseDate, chalk.green);
38
- row(t.duration, info.duration);
39
- row(t.studio, info.studio, chalk.yellow);
40
- row(t.label, info.label);
41
- row(t.director, info.director);
42
- row(t.series, info.series);
43
- row(t.rating, info.score ? `${info.score}${info.scoreCount ? `(${info.scoreCount})` : ''}` : '', chalk.yellow);
44
- row(t.wishlist, info.wantCount ? `${info.wantCount}` : '', chalk.cyan);
45
-
46
- if (info.tags.length > 0) {
47
- const tagStr = info.tags.map(tag => chalk.bgGray(` ${tag} `)).join(' ');
48
- console.log(' ' + chalk.cyan(t.tags.padEnd(8, ' ')) + ' ' + tagStr);
49
- }
50
-
51
- if (info.coverUrl) {
52
- console.log('');
53
- console.log(' ' + chalk.cyan(t.cover.padEnd(8, ' ')) + ' ' + chalk.underline.gray(info.coverUrl));
54
- }
55
-
56
- if (info.source) {
57
- console.log(' ' + chalk.gray(`${t.source}: ${info.source}`));
58
- }
59
-
60
- console.log(DIVIDER);
61
- console.log('');
1
+ import chalk from 'chalk';
2
+ import { getLang } from './i18n.js';
3
+
4
+ const DIVIDER = chalk.gray('─'.repeat(60));
5
+
6
+ function row(label, value, color = chalk.white) {
7
+ if (!value || (Array.isArray(value) && value.length === 0)) return;
8
+ const paddedLabel = chalk.cyan(label.padEnd(8, ' '));
9
+ console.log(` ${paddedLabel} ${color(value)}`);
10
+ }
11
+
12
+ export function display(info, raw = false, lang = 'zh') {
13
+ if (raw) {
14
+ console.log(JSON.stringify(info, null, 2));
15
+ return;
16
+ }
17
+
18
+ const t = getLang(lang);
19
+
20
+ console.log('');
21
+ console.log(DIVIDER);
22
+ console.log(
23
+ ' ' +
24
+ chalk.bold.yellow('🎬 ') +
25
+ chalk.bold.white(info.id) +
26
+ (info.score ? chalk.yellow(` ⭐ ${info.score}`) : '')
27
+ );
28
+
29
+ if (info.title) {
30
+ console.log(' ' + chalk.gray(info.title));
31
+ }
32
+
33
+ console.log(DIVIDER);
34
+
35
+ row(t.actress, info.actresses.join(' / '), chalk.magenta);
36
+ row(t.actor, info.actors.join(' / '), chalk.blue);
37
+ row(t.releaseDate, info.releaseDate, chalk.green);
38
+ row(t.duration, info.duration);
39
+ row(t.studio, info.studio, chalk.yellow);
40
+ row(t.label, info.label);
41
+ row(t.director, info.director);
42
+ row(t.series, info.series);
43
+ row(t.rating, info.score ? `${info.score}${info.scoreCount ? `(${info.scoreCount})` : ''}` : '', chalk.yellow);
44
+ row(t.wishlist, info.wantCount ? `${info.wantCount}` : '', chalk.cyan);
45
+
46
+ if (info.tags.length > 0) {
47
+ const tagStr = info.tags.map(tag => chalk.bgGray(` ${tag} `)).join(' ');
48
+ console.log(' ' + chalk.cyan(t.tags.padEnd(8, ' ')) + ' ' + tagStr);
49
+ }
50
+
51
+ if (info.coverUrl) {
52
+ console.log('');
53
+ console.log(' ' + chalk.cyan(t.cover.padEnd(8, ' ')) + ' ' + chalk.underline.gray(info.coverUrl));
54
+ }
55
+
56
+ if (info.source) {
57
+ console.log(' ' + chalk.gray(`${t.source}: ${info.source}`));
58
+ }
59
+
60
+ console.log(DIVIDER);
61
+ console.log('');
62
62
  }