Fix bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name MusicBrainZ 生成 OpenCD 信息
|
||||
// @namespace https://github.com/lifegpc/userscript
|
||||
// @version 0.0.3
|
||||
// @version 0.0.4
|
||||
// @description MusicBrainZ 生成 OpenCD 所需信息
|
||||
// @author lifegpc
|
||||
// @match https://musicbrainz.org/release/*
|
||||
@@ -71,7 +71,7 @@ function dumpTime(time) {
|
||||
}
|
||||
GM_registerMenuCommand("生成 Info.txt", () => {
|
||||
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 albumType = document.querySelector('#sidebar dd.type').innerText;
|
||||
const publisher = document.querySelector('#sidebar a[href^="/label/"] bdi').innerText;
|
||||
const area = document.querySelector('#sidebar a[href^="/area/"] bdi').innerText;
|
||||
|
||||
Reference in New Issue
Block a user