Show an error is an internet radio has no sources to load

master
François-Xavier Thomas 6 years ago
parent 5cb9b6c029
commit afa037611d
  1. 1
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_en.properties
  2. 1
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_fr.properties
  3. 6
      airsonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp

@ -99,6 +99,7 @@ playlist.empty=Play queue empty.
playlist.toast.appendtoplaylist=Playlist updated.
playlist.toast.saveasplaylist=Playlist saved.
playlist.toast.saveplayqueue=Play queue saved.
playlist.toast.radioerror=Sorry, an error occurred while trying to load the internet radio.
playlist.missing=Missing
playlist2.noplaylists=You haven't created any playlists yet.

@ -99,6 +99,7 @@ playlist.empty=Liste de lecture vide
playlist.toast.appendtoplaylist=Playlist mise \u00e0 jour.
playlist.toast.saveasplaylist=Playlist sauvegard\u00e9e.
playlist.toast.saveplayqueue=Liste de lecture sauvegard\u00e9.
playlist.toast.radioerror=D\u00E9sol\u00E9, une erreur s'est produite pendant le chargement de la radio.
playlist.missing=Manquant
playlist2.noplaylists=Vous n'avez pas encore cr\u00e9er de playlist.

@ -467,6 +467,12 @@
shuffleRadioEnabled = playQueue.shuffleRadioEnabled;
internetRadioEnabled = playQueue.internetRadioEnabled;
// If an internet radio has no sources, display a message to the user.
if (internetRadioEnabled && songs.length == 0) {
top.main.$().toastmessage("showErrorToast", "<fmt:message key="playlist.toast.radioerror"/>");
onStop();
}
if ($("#start")) {
$("#start").toggle(!playQueue.stopEnabled);
$("#stop").toggle(playQueue.stopEnabled);

Loading…
Cancel
Save