This commit is contained in:
parent
5f766a0efb
commit
a38fdaef91
@ -69,6 +69,7 @@ function apiResponseParsing(record) {
|
|||||||
record.artists = record.artists.map((artist) => {
|
record.artists = record.artists.map((artist) => {
|
||||||
return artist.replace(/ \([0-9]+\)$/, "");
|
return artist.replace(/ \([0-9]+\)$/, "");
|
||||||
});
|
});
|
||||||
|
record.label = record.label.replace(/ \([0-9]+\)$/, "");
|
||||||
record.sortArtist = record.artists.reduce((acc, curr) => {
|
record.sortArtist = record.artists.reduce((acc, curr) => {
|
||||||
return (
|
return (
|
||||||
acc +
|
acc +
|
||||||
@ -133,14 +134,14 @@ function RecordTemplate({
|
|||||||
<span>${identifier}</span><br/>
|
<span>${identifier}</span><br/>
|
||||||
<span>${genre}, ${label}, ${year}</span><br/>
|
<span>${genre}, ${label}, ${year}</span><br/>
|
||||||
<span>${format}</span>
|
<span>${format}</span>
|
||||||
<div>
|
<span>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="${discogsURL}"
|
href="${discogsURL}"
|
||||||
>
|
>
|
||||||
Data provided by Discogs.
|
Data provided by Discogs.
|
||||||
</a>
|
</a>
|
||||||
</div>`;
|
</span>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function TableRowTemplate({
|
function TableRowTemplate({
|
||||||
|
Loading…
Reference in New Issue
Block a user