From 44f126fd5561b5db07db8c608de2cef97f67fba6 Mon Sep 17 00:00:00 2001 From: Artem Baguinski Date: Wed, 2 Apr 2008 17:03:27 +0200 Subject: [PATCH] whitespace cosmetics, comments --- shuffle.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shuffle.py b/shuffle.py index 140a6ee..73e925e 100644 --- a/shuffle.py +++ b/shuffle.py @@ -1,7 +1,7 @@ """ iPod Shuffle database access -Documentation: +File format documentation: - http://ipodlinux.org/ITunesDB#iTunesSD_file and further Author: Artem Baguinski @@ -16,13 +16,13 @@ WRITE = 'w+b' iTunesSD_hdr = Record([ Field(Uint24(), 'tracks'), - Field(Uint24(), const=0x010800), - Field(Uint24(), '%reclen%', check=True), + Field(Uint24(), const = 0x010800), + Field(Uint24(), '%reclen%', check = True), Skip(9)], BIG_ENDIAN) iTunesSD_track = Record([ - Field(Uint24(), '%reclen%', check=True), + Field(Uint24(), '%reclen%', check = True), Skip(3), Field(Uint24(), 'starttime', default = 0), Skip(6), @@ -51,6 +51,7 @@ iTunesStats_track = Record([ Field( Uint24(), 'skippedcount', default = 0)], LITTLE_ENDIAN) +# Here I disagree with the format from URL, but I'm not sure about nothing iTunesPState = Record([ Field( Uint8(), 'volume', default = 29 ), Field( Uint24(), 'shufflepos', default = 0 ), -- 2.11.4.GIT