diff --git a/admin/app/scripts/controllers/relations.js b/admin/app/scripts/controllers/relations.js index 96ee6749..2bb4b589 100644 --- a/admin/app/scripts/controllers/relations.js +++ b/admin/app/scripts/controllers/relations.js @@ -446,7 +446,7 @@ angular.module('bmmApp') $rootScope.songtreasures.lyricsAvailable = false; $rootScope.songtreasures.lyricsStatus = 'loading'; - _api.songLyricsGet(response.result.id, model.original_language) + _api.songLyricsGet(response.result.id, convertLanguageToSongtreasure(model.original_language)) .fail(function(response){ $rootScope.songtreasures.lyricsStatus = 'not available'; }) diff --git a/common/app/scripts/services/_api.js b/common/app/scripts/services/_api.js index c5e96db5..7bc52dfe 100644 --- a/common/app/scripts/services/_api.js +++ b/common/app/scripts/services/_api.js @@ -1208,10 +1208,9 @@ angular.module('bmmLibApp') }; factory.songLyricsGet = function(songGuid, language){ - var songtreasuresLanguage = language === "nb" ? "no" : language; return factory.addToQueue({ method: 'GET', - url: serverUrl+'songtreasures/Songs/'+songGuid+'/Lyrics?language='+songtreasuresLanguage+'&format=json', + url: serverUrl+'songtreasures/Songs/'+songGuid+'/Lyrics?language='+language+'&format=json', beforeSend: function(xhr) { xhr.setRequestHeader("X-Api-Version", 3); }