mb_discids_detector: Fix artist/album detection on OPS.

This commit is contained in:
David Logie 2023-01-20 11:30:50 +00:00 committed by Aurélien Mino
parent b1da6eb48c
commit 6be127759f

View file

@ -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];