whitespace fixup
This commit is contained in:
parent
f04c214e63
commit
c03ac6050c
@ -24,7 +24,6 @@ def main(in_file, out_file, dll_path=None):
|
||||
dll_path = 'C:/Program Files (x86)/Audible/Bin/AAXSDKWin.dll'
|
||||
|
||||
dll = ctypes.CDLL(dll_path)
|
||||
|
||||
handle = open_file(dll, in_file)
|
||||
|
||||
a = (dll, handle)
|
||||
@ -34,13 +33,13 @@ def main(in_file, out_file, dll_path=None):
|
||||
authenticate(*a)
|
||||
|
||||
print('c', channels, 's', sample_rate)
|
||||
|
||||
|
||||
n_chapters = get_chapter_count(*a)
|
||||
chapter_times = [get_chapter_start_time(*a, i) for i in range(n_chapters)]
|
||||
|
||||
|
||||
with open(out_file + '.txt', 'w') as f:
|
||||
[f.write(str(ti) + '\n') for ti in chapter_times]
|
||||
|
||||
|
||||
enc_buf = ctypes.create_string_buffer(0x400)
|
||||
dec_buf = ctypes.create_string_buffer(0x400 * 200)
|
||||
|
||||
@ -154,7 +153,7 @@ def get_chapter_text(dll, handle, chapter_num, buf=None):
|
||||
|
||||
if data_len.value == 0:
|
||||
return ''
|
||||
|
||||
|
||||
if res != 0:
|
||||
raise Exception('AAXGetChapterText: {}'.format(res))
|
||||
|
||||
@ -252,4 +251,3 @@ def get_max_bitrate(dll, handle):
|
||||
raise Exception('AAXGetAvgBitrate: {}'.format(res))
|
||||
|
||||
return bitrate.value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user