diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-04-14 20:06:57 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-04-14 20:06:57 -0300 |
| commit | ed38f9529084cdd3ff6cdfb56148fd9a99c259b2 (patch) | |
| tree | e0b33cba6f51cb6f16350121d0f7e07d0a28f353 /src/data | |
| parent | e5e836354225a1d7954613b4ae1cbd7f797ec9f3 (diff) | |
data: MusicVideo: nicer inspect
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/things/MusicVideo.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/things/MusicVideo.js b/src/data/things/MusicVideo.js index 8ca7c813..8e4e2d6d 100644 --- a/src/data/things/MusicVideo.js +++ b/src/data/things/MusicVideo.js @@ -179,7 +179,15 @@ export class MusicVideo extends Thing { [inspect.custom](depth, options, inspect) { const parts = []; - parts.push(Thing.prototype[inspect.custom].apply(this)); + parts.push(this.constructor.name); + + if (this.title) { + parts.push(` ${colors.green(`"${this.title}"`)}`); + } else if (this.label) { + parts.push(` (${colors.green(`"${this.label}"`)})`); + } else if (this.unqualifiedDirectory !== 'music-video') { + parts.push(` (${colors.blue(this.unqualifiedDirectory)})`); + } if (this.thing) { if (depth >= 0) { |