* calculate v1 and v2 checksums at once * let libsndfile handle both WAV and FLAC Signed-off-by: Andreas Oberritter <obi@saftware.de>
6 lines
156 B
Python
6 lines
156 B
Python
import accuraterip
|
|
|
|
|
|
def accuraterip_checksum(f, track_number, total_tracks):
|
|
return accuraterip.compute(f.encode('utf-8'), track_number, total_tracks)
|