All pastes #99439 Raw Edit

James Livingston

public text v1 · immutable
#99439 ·published 2006-07-25 09:47 UTC
rendered paste body
diff -u -p -r1.2 LocalCoverArtSearch.py
--- plugins/artdisplay/artdisplay/LocalCoverArtSearch.py	13 Jul 2006 04:45:59 -0000	1.2
+++ plugins/artdisplay/artdisplay/LocalCoverArtSearch.py	25 Jul 2006 09:44:52 -0000
@@ -30,7 +30,7 @@ class LocalCoverArtSearch:
 	def __init__ (self, loader):
 		self.loader = loader
 
-	def _load_dir_cb (self, handle, files, exception, (results, on_search_completed_cb, entry, args)):
+	def _load_dir_cb (self, handle, files, exception, (results, on_search_completed_cb, entry, *args)):
 		for f in files:
 			if f.mime_type.startswith ("image/") and f.permissions & gnomevfs.PERM_USER_READ:
 				results.append (f.name)
@@ -48,7 +48,7 @@ class LocalCoverArtSearch:
 
 		print 'searching for art local to', uri
 		self.uri = gnomevfs.URI (uri)
-		gnomevfs.async.load_directory (self.uri.parent, self._load_dir_cb, LOAD_DIRECTORY_FLAGS, data=([], on_search_completed_cb, entry, args))
+		gnomevfs.async.load_directory (self.uri.parent, self._load_dir_cb, LOAD_DIRECTORY_FLAGS, data=([], on_search_completed_cb, entry, *args))
 
 	def search_next (self):
 		return False