diff options
| author | nicholas <nicholas@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2006-04-09 16:38:12 +0000 |
|---|---|---|
| committer | nicholas <nicholas@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2006-04-09 16:38:12 +0000 |
| commit | 1ab943acd2422bb2594d432a0a29030f4958886b (patch) | |
| tree | bf60b90d0264d105ca06038d2da0137e58c926f3 /bindings/python/examples/playwith_ipod_api.py | |
| parent | 30094a39e70cb39a842c7a04abb5c20e61c2014e (diff) | |
Very start of a much nicer API from Python
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1242 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'bindings/python/examples/playwith_ipod_api.py')
| -rwxr-xr-x | bindings/python/examples/playwith_ipod_api.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bindings/python/examples/playwith_ipod_api.py b/bindings/python/examples/playwith_ipod_api.py new file mode 100755 index 0000000..544de5b --- /dev/null +++ b/bindings/python/examples/playwith_ipod_api.py @@ -0,0 +1,14 @@ +#!/usr/bin/python + +import ipod + +db = ipod.Database() + +for track in db[4:20]: + print track + print track['title'] + +filename = "/mp3/Blondie/No_Exit/Blondie_-_Maria.mp3" +t = ipod.Track(from_file=filename) +print t + |
