From 6d65305df8d6d34e6f0b13f5658585a288d4a815 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Mon, 13 May 2024 08:44:11 +0800 Subject: [PATCH] Fix bug --- mbz_generate_opencd_info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbz_generate_opencd_info.js b/mbz_generate_opencd_info.js index 363448e..fdb250a 100644 --- a/mbz_generate_opencd_info.js +++ b/mbz_generate_opencd_info.js @@ -1,7 +1,7 @@ // ==UserScript== // @name MusicBrainZ 生成 OpenCD 信息 // @namespace https://github.com/lifegpc/userscript -// @version 0.0.4 +// @version 0.0.5 // @description MusicBrainZ 生成 OpenCD 所需信息 // @author lifegpc // @match https://musicbrainz.org/release/* @@ -118,7 +118,7 @@ ${trackInfo}` }) GM_registerMenuCommand("复制 BBCode", () => { const title = document.querySelector("h1 bdi").innerText; - const albumArtist = document.querySelector("p.subheader bdi").innerText; + const albumArtist = document.querySelector("p.subheader").innerText.match(/Release by (.+) (\(see all versions of this release, \d+ available\))?$/)[1]; const albumFormat = document.querySelector('#sidebar dd.format').innerText; const albumType = document.querySelector('#sidebar dd.type').innerText; const area = document.querySelector('#sidebar a[href^="/area/"] bdi').innerText;