From 4c2313812d7d30ccdb95fca4faba50698688af56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Guillou?= Date: Sat, 30 Jul 2016 00:36:14 +1000 Subject: [PATCH] add "stream for free" url if streamable --- fma_importer.user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fma_importer.user.js b/fma_importer.user.js index 56b762a..e67ee6b 100644 --- a/fma_importer.user.js +++ b/fma_importer.user.js @@ -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) {