diff options
| author | nicholas <nicholas@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2006-04-07 15:02:48 +0000 |
|---|---|---|
| committer | nicholas <nicholas@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2006-04-07 15:02:48 +0000 |
| commit | a95e94bb385a3e5b93848f5c4298eabb4d791a07 (patch) | |
| tree | f28e99e2f717f288fd8d7182a4c3e89c109d009f | |
| parent | 29538e28b81edb132dbacdb52f2d71d92428fdd0 (diff) | |
| download | libgpod-a95e94bb385a3e5b93848f5c4298eabb4d791a07.tar.gz libgpod-a95e94bb385a3e5b93848f5c4298eabb4d791a07.tar.xz libgpod-a95e94bb385a3e5b93848f5c4298eabb4d791a07.zip | |
Cleanup temp files after we're done.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1230 f01d2545-417e-4e96-918e-98f8d0dbbcb6
| -rwxr-xr-x | bindings/python/examples/coverart_fetch.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bindings/python/examples/coverart_fetch.py b/bindings/python/examples/coverart_fetch.py index a2e10c8..398dfba 100755 --- a/bindings/python/examples/coverart_fetch.py +++ b/bindings/python/examples/coverart_fetch.py @@ -90,7 +90,13 @@ for track in gpod.sw_get_tracks(itdb): print "Added thumbnails for %s, %s" % (track.album,track.artist) except KeyError: print "No image available for %s, %s" % (track.album,track.artist) - +print "Cleaning up downloaded images..." +# really, we should do this if any of the real work threw an exception +# too. This is just a demo script :-) +for filename in images.values(): + os.unlink(filename) + +print "Writing ipod database..." gpod.itdb_write(itdb, None) -print "Saved db" + |
