mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
Merge branch 'NicoHood' of https://github.com/NicoHood/IPod-Shuffle-4g into NicoHood-NicoHood
This commit is contained in:
commit
344b227c2b
1 changed files with 5 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ class TunesSD(Record):
|
||||||
])
|
])
|
||||||
|
|
||||||
def construct(self):
|
def construct(self):
|
||||||
# The header is a fixed length, so no need to precalculate it
|
# The header is a fixed length, so no need to calculate it
|
||||||
self.track_header.base_offset = 64
|
self.track_header.base_offset = 64
|
||||||
track_header = self.track_header.construct()
|
track_header = self.track_header.construct()
|
||||||
|
|
||||||
|
|
@ -555,6 +555,10 @@ if __name__ == '__main__':
|
||||||
parser.add_argument('path')
|
parser.add_argument('path')
|
||||||
result = parser.parse_args()
|
result = parser.parse_args()
|
||||||
|
|
||||||
|
if not os.path.isdir(result.path):
|
||||||
|
print "Error finding IPod directory. Maybe it is not connected or mounted?"
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
if result.rename_unicode:
|
if result.rename_unicode:
|
||||||
check_unicode(result.path)
|
check_unicode(result.path)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue