changeset 1223:a6e6b0ea4535

Add mimetype integration.
author William Pitcock <nenolod@atheme-project.org>
date Mon, 09 Jul 2007 05:02:56 -0500
parents 619cd8c8def5
children 0ff4f43fe907
files src/lastfm/lastfm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lastfm/lastfm.c	Sun Jul 08 22:42:16 2007 -0500
+++ b/src/lastfm/lastfm.c	Mon Jul 09 05:02:56 2007 -0500
@@ -456,6 +456,8 @@
                 return g_strdup_printf("last.fm radio: %s", handle->lastfm_station_name);
         if (!g_ascii_strncasecmp(field, "track-name", 10) && (handle->lastfm_title != NULL) && (handle->lastfm_artist != NULL))
                 return g_strdup_printf("%s - %s", handle->lastfm_artist, handle->lastfm_title);
+	if (!g_ascii_strncasecmp(field, "content-type", 12))
+		return g_strdup("audio/mpeg");
 
         return NULL;
 }