mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-05 06:47:16 +00:00
Merge pull request #120 from stragu/patch-1
FMA importer: add "stream for free" link
This commit is contained in:
commit
74005bf653
1 changed files with 9 additions and 0 deletions
|
@ -576,6 +576,15 @@ function Parsefmarelease(albumobject, trackobject) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check to see if a play button is available
|
||||||
|
if ($(".sqbtn-playpage").length) {
|
||||||
|
// Release URL
|
||||||
|
fmarelease.urls.push({
|
||||||
|
'url': albumobject.album_url,
|
||||||
|
'link_type': MBImport.URL_TYPES.stream_for_free
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Release date
|
// Release date
|
||||||
if (albumobject.album_date_released) {
|
if (albumobject.album_date_released) {
|
||||||
parse_MM_DD_YYYY(albumobject.album_date_released, fmarelease);
|
parse_MM_DD_YYYY(albumobject.album_date_released, fmarelease);
|
||||||
|
|
Loading…
Add table
Reference in a new issue