Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msn.c @ 24456:7a5f6ddd11b1
Only get the artist and album if we are setting a Music mediatype.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 24 Nov 2008 06:05:01 +0000 |
parents | e344426d7c28 |
children | 4fd22591e3f0 fdd9fd5c2086 367b3ddcf5c3 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Mon Nov 24 05:51:18 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Mon Nov 24 06:05:01 2008 +0000 @@ -705,11 +705,11 @@ if (purple_presence_is_status_primitive_active(presence, PURPLE_STATUS_TUNE)) { PurpleStatus *tune = purple_presence_get_status(presence, "tune"); const char *title = purple_status_get_attr_string(tune, PURPLE_TUNE_TITLE); - const char *artist = purple_status_get_attr_string(tune, PURPLE_TUNE_ARTIST); - const char *album = purple_status_get_attr_string(tune, PURPLE_TUNE_ALBUM); const char *game = purple_status_get_attr_string(tune, "game"); const char *office = purple_status_get_attr_string(tune, "office"); if (title && *title) { + const char *artist = purple_status_get_attr_string(tune, PURPLE_TUNE_ARTIST); + const char *album = purple_status_get_attr_string(tune, PURPLE_TUNE_ALBUM); mediatype = _("Now Listening"); currentmedia = purple_util_format_song_info(title, artist, album, NULL); } else if (game && *game) {