comparison itunes2mp3.py @ 3:30f4a5616692 default tip

Fix usage display and arg checking.. Not sure how this worked previously.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 18 Aug 2014 13:38:29 +0930
parents 1681a628ceb4
children
comparison
equal deleted inserted replaced
2:1681a628ceb4 3:30f4a5616692
68 dest = srcdir + '/burn/%03d - %s' % (i, f.split('/')[-1]) 68 dest = srcdir + '/burn/%03d - %s' % (i, f.split('/')[-1])
69 i += 1 69 i += 1
70 os.link(f, dest) 70 os.link(f, dest)
71 71
72 if __name__ == "__main__": 72 if __name__ == "__main__":
73 if len(sys.argv) != 2: 73 if len(sys.argv) != 3:
74 print "Bad usage" 74 print "Bad usage"
75 print "%s playlist.xml destdir" 75 print "%s playlist.xml destdir" % (sys.argv[0])
76 sys.exit(1) 76 sys.exit(1)
77 77
78 compress(sys.argv[1], sys.argv[2]) 78 compress(sys.argv[1], sys.argv[2])
79 shuffle(sys.argv[2]) 79 shuffle(sys.argv[2])