mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-17 15:06:57 +00:00
mb_discids_detector: Fix artist/album detection on OPS.
This commit is contained in:
parent
b1da6eb48c
commit
6be127759f
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,9 @@ function gazellePageHandler() {
|
|||
// Determine Artist name and Release title
|
||||
let titleAndArtists = $('#content div.thin h2:eq(0)').text();
|
||||
let pattern = /(.*) - (.*) \[.*\] \[.*/;
|
||||
if (serverHost.match(/orpheus/)) {
|
||||
pattern = /(.*) - (.*) \[.*/;
|
||||
}
|
||||
let artistName, releaseName;
|
||||
if ((m = titleAndArtists.match(pattern))) {
|
||||
artistName = m[1];
|
||||
|
|
Loading…
Add table
Reference in a new issue