From 18cb676d81df0ca2130feac1c71a94a47c2959e1 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 2 Mar 2013 11:57:52 +0100 Subject: [PATCH] Use all but last track to find offset. Fixes problems for people whose reader doesn't do overread on the last track. --- morituri/rip/offset.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/morituri/rip/offset.py b/morituri/rip/offset.py index 43e3131..bc7ca1d 100644 --- a/morituri/rip/offset.py +++ b/morituri/rip/offset.py @@ -170,8 +170,9 @@ CD in the AccurateRip database.""" 'Offset of device is likely %d, confirming ...\n' % offset) - # now try and rip all other tracks as well - for track in range(2, len(table.tracks) + 1): + # now try and rip all other tracks as well, except for the + # last one (to avoid readers that can't do overread + for track in range(2, (len(table.tracks) + 1) - 1): try: archecksum = self._arcs(runner, table, track, offset) except task.TaskException, e: