From f73ea5a7e838a3d0e6047997344d26f50eb1999a Mon Sep 17 00:00:00 2001 From: Nicholas Piper Date: Sat, 8 Apr 2006 08:23:14 +0000 Subject: Used wrong variable when printing we couldn't read the ipod. Avoid ampersands in the search query as well as double quotes. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1233 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- bindings/python/examples/coverart_fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/examples/coverart_fetch.py b/bindings/python/examples/coverart_fetch.py index 0e23c73..f5bfa92 100755 --- a/bindings/python/examples/coverart_fetch.py +++ b/bindings/python/examples/coverart_fetch.py @@ -33,7 +33,7 @@ import tempfile ipod_mount = '/mnt/ipod' itdb = gpod.itdb_parse(ipod_mount, None) if not itdb: - print "Failed to read %s" % dbname + print "Failed to read ipod at mountpoint %s" % ipod_mount sys.exit(2) # set your key here, or see amazon.py for a list of other places to @@ -63,7 +63,7 @@ for track in gpod.sw_get_tracks(itdb): # this string literally into their XML response, so can end up # giving us back: which is not well formed :-( - for term in ["Disk 1", "Disk 2", '12"', '12 "','"']: + for term in ["Disk 1", "Disk 2", '12"', '12 "','"','&']: query = query.replace(term,"") print "Searching for %s: " % query, try: -- cgit