[rhythmbox] audioscrobbler: handle "deprecated station" error code
- From: Jamie Nicol <jamien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] audioscrobbler: handle "deprecated station" error code
- Date: Sun, 28 Nov 2010 02:22:20 +0000 (UTC)
commit b2f6cace4e125a6d27704cbc4c0bf88d2dae739f
Author: Jamie Nicol <jamie thenicols net>
Date: Sun Nov 28 01:51:21 2010 +0000
audioscrobbler: handle "deprecated station" error code
.../rb-audioscrobbler-radio-source.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c b/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
index af57e3a..d591ecb 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
@@ -807,6 +807,12 @@ tune_response_cb (SoupSession *session,
} else if (code == 20) {
/* Not enough content */
error_message = g_strdup (_("Not enough content to play station"));
+ } else if (code == 27) {
+ /* Deprecated station */
+ /* Translators: %s is the name of the audioscrobbler service, for example "Last.fm".
+ * This message indicates that the service has deprecated this type of station. */
+ error_message = g_strdup_printf (_("%s no longer supports this type of station"),
+ rb_audioscrobbler_service_get_name (source->priv->service));
} else {
/* Other error */
error_message = g_strdup_printf (_("Error tuning station: %i - %s"), code, message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]