Show an error is an internet radio has no sources to load
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user