« get me outta code hell

data: MusicVideo: nicer inspect - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/MusicVideo.js
diff options
context:
space:
mode:
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
commited38f9529084cdd3ff6cdfb56148fd9a99c259b2 (patch)
treee0b33cba6f51cb6f16350121d0f7e07d0a28f353 /src/data/things/MusicVideo.js
parente5e836354225a1d7954613b4ae1cbd7f797ec9f3 (diff)
data: MusicVideo: nicer inspect
Diffstat (limited to 'src/data/things/MusicVideo.js')
-rw-r--r--src/data/things/MusicVideo.js10
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) {