Merge pull request #123 from stragu/patch-1

Use "broadcast" type for "Radio Program" album_type
This commit is contained in:
Laurent Monin 2016-10-05 18:54:44 +02:00 committed by GitHub
commit 3722598299

View file

@ -22,6 +22,7 @@
* http://freemusicarchive.org/music/Podington_Bear/Springtime/ * http://freemusicarchive.org/music/Podington_Bear/Springtime/
* http://freemusicarchive.org/music/Broke_For_Free/Directionless_EP/ * http://freemusicarchive.org/music/Broke_For_Free/Directionless_EP/
* http://freemusicarchive.org/music/Various_Artists_Evergreens_n_Odditunes/Evergreens_n_Odditunes/ * 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 // Type
// TODO: match all FMA types to MB types // 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 // Default status is official
fmarelease.status = 'official'; fmarelease.status = 'official';