changeset 1016:77153fae50e3 trunk

[svn] - don't report content-length
author nenolod
date Fri, 11 May 2007 09:37:33 -0700
parents 69cf6184edef
children 2f0b7056f354
files ChangeLog src/lastfm/lastfm.c
diffstat 2 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 11 09:32:54 2007 -0700
+++ b/ChangeLog	Fri May 11 09:37:33 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-11 16:32:54 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2194]
+  - make this work without controlsocket
+  
+  trunk/src/scrobbler/plugin.c |   18 ++++++++++--------
+  1 file changed, 10 insertions(+), 8 deletions(-)
+
+
 2007-05-11 16:18:02 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2192]
   - lets avoid spawning >1 threads for metadata
--- a/src/lastfm/lastfm.c	Fri May 11 09:32:54 2007 -0700
+++ b/src/lastfm/lastfm.c	Fri May 11 09:37:33 2007 -0700
@@ -223,15 +223,16 @@
 #endif
 
 		sleep(sleep_time);
+#if 0
 		if (handle->proxy_fd == NULL)
 			opened_file = FALSE;
+#endif
 	}
 
 #ifdef DEBUG
 	g_print("Exiting a thread\n");
 #endif
-
-
+	metadata_thread = NULL;
 	return NULL;
 }
 
@@ -381,10 +382,6 @@
 		return g_strdup(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-length", 14))
-		return g_strdup_printf("%d", handle->lastfm_duration);
-
-
 
 	return NULL;
 }