add "stream for free" url if streamable

This commit is contained in:
Stéphane Guillou 2016-07-30 00:36:14 +10:00 committed by GitHub
parent 8eb66c1e4b
commit 4c2313812d

View file

@ -575,6 +575,14 @@ function Parsefmarelease(albumobject, trackobject) {
'link_type': MBImport.URL_TYPES.other_databases
});
}
// 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
if (albumobject.album_date_released) {