summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Piper <nicholas@users.sourceforge.net>2006-04-08 08:23:14 +0000
committerNicholas Piper <nicholas@users.sourceforge.net>2006-04-08 08:23:14 +0000
commitf73ea5a7e838a3d0e6047997344d26f50eb1999a (patch)
treec4ebc4350296a44c2ac4e28a585739f096f8d41a
parent73de51534a04453087c0c1ce3c646e754d76cb97 (diff)
downloadlibgpod-f73ea5a7e838a3d0e6047997344d26f50eb1999a.tar.gz
libgpod-f73ea5a7e838a3d0e6047997344d26f50eb1999a.tar.xz
libgpod-f73ea5a7e838a3d0e6047997344d26f50eb1999a.zip
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
-rwxr-xr-xbindings/python/examples/coverart_fetch.py4
1 files 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: <Arg value="search"term"
# name="KeywordSearch"> 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: