Skip to content

Commit

Permalink
fix: disabling covers should also disable X song
Browse files Browse the repository at this point in the history
for example when Paul McCartney performs a Beatles song
  • Loading branch information
dvirtz committed Dec 16, 2024
1 parent 1e9d255 commit 7867409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setlistfm-musicbrainz-import/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function* setlistEntry(setlistPart: Element, mainArtistName: string, addCoverCom
const match = line.match(/\(with (.*)\)/);
if (match) {
return [artist(`${mainArtistName} with ${match[1]}`)];
} else if (!line.includes('cover') || addCoverComment) {
} else if (!line.match(/\b(cover|song)\)/) || addCoverComment) {
return [info(line)];
} else {
return [];
Expand Down

0 comments on commit 7867409

Please sign in to comment.