mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-14 12:22:26 +00:00
Get release date from ProductDetail
This commit is contained in:
parent
b8d53a5d0a
commit
9e075aec21
1 changed files with 1 additions and 4 deletions
|
@ -36,9 +36,6 @@ function retrieveReleaseInfo(release_url) {
|
||||||
});
|
});
|
||||||
return selectors.join(',');
|
return selectors.join(',');
|
||||||
}
|
}
|
||||||
var release_date_strings = [
|
|
||||||
'Release Date', 'Fecha de lanzamiento', 'Date de sortie', 'Veröffentlichungsdatum', 'Data de lançamento', 'Releasedatum'
|
|
||||||
];
|
|
||||||
var release_strings = [
|
var release_strings = [
|
||||||
'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento'
|
'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento'
|
||||||
];
|
];
|
||||||
|
@ -48,7 +45,7 @@ function retrieveReleaseInfo(release_url) {
|
||||||
var catalog_strings = [
|
var catalog_strings = [
|
||||||
'Catalog', 'Catálogo', 'Catalogue', 'Katalog', 'Catalogus'
|
'Catalog', 'Catálogo', 'Catalogue', 'Katalog', 'Catalogus'
|
||||||
];
|
];
|
||||||
var releaseDate = $(contains_or(".category", release_date_strings)).next().text().split("-");
|
var releaseDate = ProductDetail.date.published.split("-");
|
||||||
|
|
||||||
// Release information global to all Beatport releases
|
// Release information global to all Beatport releases
|
||||||
var release = {
|
var release = {
|
||||||
|
|
Loading…
Reference in a new issue