Index: scrobbler.c =================================================================== --- scrobbler.c (revision 2412) +++ scrobbler.c (working copy) @@ -259,7 +259,7 @@ value = g_hash_table_lookup (metadata, bmp_metadata_get_id_static (BMP_DATUM_TITLE)); title = g_value_get_string (value); - if (!duration || !artist || !title || !album) + if (!duration || !artist || !title) { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "%s: Not submitting '%s' to scrobbler: missing metadata!", G_STRLOC, @@ -283,7 +283,9 @@ g_free (user); g_message ("%s: Submitting song '%s' with POST data '%s'", G_STRLOC, current_uri, post_data); - uri = bmp_uri_new (self->private->info->uri); + if (!(uri = bmp_uri_new (self->private->info->uri))) + return; + sess = ne_session_create (uri->scheme, uri->hostname, 80); @@ -348,11 +350,17 @@ _("There was an authentication error during song submission.\n\nPlease check your Last.FM username/password.\n\nLast.FM support has to be disabled until proper credentials are provided.")); xcs_key_set_boolean (xcs, "lastfm", "enable", FALSE); } - else + else if (!strncmp("FAILED ", resp[0], 7)) { + g_message("%s: Submitting song '%s' failed: %s", G_STRLOC, current_uri, resp[0]); + } + else /* OK assumed */ + { g_message ("%s: Submitting song '%s' succeeded.", G_STRLOC, current_uri); } + g_free(resp); + #if 0 g_free (timestr); g_free (hs_result);