mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 03:42:27 +00:00
Merge pull request #123 from stragu/patch-1
Use "broadcast" type for "Radio Program" album_type
This commit is contained in:
commit
3722598299
1 changed files with 7 additions and 2 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue