From 548b4f1cad9bf1c100b659b034b94bfe0ebc7201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Guillou?= Date: Fri, 23 Sep 2016 23:54:26 +1000 Subject: [PATCH] use "broadcast" type for "Radio Program" album_type --- fma_importer.user.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fma_importer.user.js b/fma_importer.user.js index 1defb7e..e304600 100644 --- a/fma_importer.user.js +++ b/fma_importer.user.js @@ -22,6 +22,7 @@ * http://freemusicarchive.org/music/Podington_Bear/Springtime/ * http://freemusicarchive.org/music/Broke_For_Free/Directionless_EP/ * http://freemusicarchive.org/music/Various_Artists_Evergreens_n_Odditunes/Evergreens_n_Odditunes/ + * Radio program: http://freemusicarchive.org/music/Kyle_Eyre_Clyd/Live_on_WFMUs_Strength_Through_Failure_with_Fabio_Roberti_8132015/ */ @@ -552,8 +553,12 @@ function Parsefmarelease(albumobject, trackobject) { // Type // TODO: match all FMA types to MB types - fmarelease.type = albumobject.album_type.toLowerCase(); - + if (albumobject.album_type == "Radio Program") { + fmarelease.type = "broadcast"; + } else { + fmarelease.type = albumobject.album_type.toLowerCase(); + } + // Default status is official fmarelease.status = 'official';