mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-05 00:19:13 +00:00
Fix Juno Download importer.
The HTML changed a few weeks (months?) ago, breaking the importer. Make it work again.
This commit is contained in:
parent
252b00ea42
commit
2354124615
1 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ function parseReleaseDate(rdate) {
|
|||
function retrieveReleaseInfo(release_url) {
|
||||
let release = {
|
||||
artist_credit: [],
|
||||
title: $('meta[itemProp="name"]').attr('content').trim(),
|
||||
title: $('h2.product-title a').text().trim(),
|
||||
year: 0,
|
||||
month: 0,
|
||||
day: 0,
|
||||
|
@ -85,8 +85,8 @@ function retrieveReleaseInfo(release_url) {
|
|||
});
|
||||
|
||||
release.labels.push({
|
||||
name: $('meta[itemProp="author"]').attr('content').trim(),
|
||||
catno: $('strong:contains("Cat:")').parent().contents().slice(2, 3).text().trim(),
|
||||
name: $('div[itemProp="publisher"] meta[itemProp="name"]').attr('content').trim(),
|
||||
catno: $('strong:contains("Cat:")').parent().contents().slice(1, 2).text().trim(),
|
||||
});
|
||||
|
||||
let tracks = [];
|
||||
|
|
Loading…
Reference in a new issue