static void rb_lastfm_new_track_cb (RBShellPlayer *player, RhythmDBEntry *entry, RBLastfmSource *source) { RhythmDBEntryType type; RhythmDBEntry *next; next = rb_shell_player_get_playing_entry (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) // return; if (type == source->priv->entry_type) { 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); } rb_lastfm_change_station (location, source); return; }