changeset 3362:9da616784f11 trunk

Fixed lap.py's -q option when used with the audtool fallback.
author ssokolow@monolith.multiverse
date Sat, 18 Aug 2007 02:26:41 -0400
parents e7d8727fb901
children 38d5745b3b93
files contrib/lap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/lap.py	Sat Aug 18 02:45:06 2007 +0200
+++ b/contrib/lap.py	Sat Aug 18 02:26:41 2007 -0400
@@ -81,7 +81,7 @@
 		try:
 			if subprocess.call(['audtool','playlist-addurl',file_url]):
 				print "ERROR: audtool fallback returned an error for: %s" % file_url
-			else:
+			elif play:
 				os.system('audtool playlist-jump `audtool playlist-length`; audtool playback-play')
 		except OSError:
 			print "ERROR: Unable to call audtool as a fallback for: %s" % file_url