changeset 1150:3506c611a802 trunk

[svn] - fix registration of lastfm session ID
author nenolod
date Mon, 28 May 2007 23:29:02 -0700
parents bca08b1c2d16
children 31ad9abf9606
files ChangeLog src/lastfm/lastfm.c
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 28 23:16:25 2007 -0700
+++ b/ChangeLog	Mon May 28 23:29:02 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-29 06:16:25 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2464]
+  - expose lastfm internal data over mowgli's global storage subsystem so that plugins can manipulate lastfm listening indirectly
+  
+  trunk/src/lastfm/lastfm.c |    5 +++++
+  1 file changed, 5 insertions(+)
+
+
 2007-05-28 10:15:02 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2462]
   - mms: convert to plugin2 architecture
--- a/src/lastfm/lastfm.c	Mon May 28 23:16:25 2007 -0700
+++ b/src/lastfm/lastfm.c	Mon May 28 23:29:02 2007 -0700
@@ -38,13 +38,6 @@
 	return size * nmemb;
 }
 
-int max(int a,int b)
-{
-        if(a>b) 
-                return a;
-        return b;
-}
-
 gint get_data_from_url(gchar buf[4096], GString * res)
 {
 	CURL *curl = curl_easy_init();
@@ -109,12 +102,13 @@
 
 	g_strfreev(split);
 	g_string_erase(res, 0, -1);
-	return (gboolean) TRUE;
 
 	if (mowgli_global_storage_get("lastfm_session_id"))
 		mowgli_global_storage_free("lastfm_session_id");
 
 	mowgli_global_storage_put("lastfm_session_id", LastFMGlobalData->lastfm_session_id);
+
+	return (gboolean) TRUE;
 }
 
 static gboolean lastfm_adjust(const gchar * url)