mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-14 04:12:28 +00:00
parse title out of release metadata
This commit is contained in:
parent
214d4c6f8b
commit
31c15e3697
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ function retrieveReleaseInfo() {
|
|||
release.urls.push( { 'url': window.location.href } );
|
||||
release.id = $( "a[data-release]" ).attr('data-release');
|
||||
|
||||
release.title = $( "h3.interior-type:contains('Release')" ).next().text().trim();
|
||||
|
||||
var releaseDate = $( ".category:contains('Release Date')" ).next().text().split("-");
|
||||
release.year = releaseDate[0];
|
||||
release.month = releaseDate[1];
|
||||
|
|
Loading…
Reference in a new issue