rendered paste bodystatic voidrb_lastfm_new_track_cb (RBShellPlayer *player, RhythmDBEntry *entry, RBLastfmSource *source){ RhythmDBEntryType type; RhythmDBEntry next; next = rb_shell_player_get_playing_entry (source->priv->shell_player); type = rhythmdb_entry_get_entry_type (entry); char *location; char *locationtwo; location = (char *) rhythmdb_entry_get_string (next, RHYTHMDB_PROP_LOCATION); locationtwo = (char *) rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_LOCATION); if (strcmp(location, locationtwo) == 0) then return; if (type == source->priv->entry_type) then { GValue v = {0,}; g_value_init (&v, G_TYPE_STRING); g_value_set_string (&v, NULL); rhythmdb_entry_set (source->priv->db, entry, RHYTHMDB_PROP_ARTIST, &v); rhythmdb_entry_set (source->priv->db, entry, RHYTHMDB_PROP_TITLE, &v); rhythmdb_entry_set (source->priv->db, entry, RHYTHMDB_PROP_ALBUM, &v); g_value_unset (&v); rhythmdb_commit (source->priv->db); } if (source->priv->connected) rb_lastfm_change_station (location, source);}