JasonMillward / Autorippr

Rip discs automatically using a blend of Python, MakeMKV and HandBrake
MIT License
239 stars 60 forks source link

Disc ejects after ripping first TV episode track #115

Closed formeroosid closed 8 years ago

formeroosid commented 8 years ago

I'm ripping Star Trek TOS Season 1 disk 1 with --all --debug. It looks like all the tracks are located and the first one is ripped successfully, but the disc is ejected and the rest of the tracks are not found. Here's the debug output. Running the latest Autorippr code on Ubuntu Linux 16.04 with Python version 2.7.11+. Eject in the settings.cfg is set to True. Doesn't occur if this is set to false.

jgordon@lumpy:/usr/local/bin/Autorippr$ sudo python autorippr.py --all --debug     2016-06-14 16:11:49 - Rip - DEBUG - Ripping initialised
2016-06-14 16:11:49 - Rip - DEBUG - Checking for DVDs
2016-06-14 16:11:51 - Rip - DEBUG - 1 DVD(s) found
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV found 9 titles
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 1, Title: ['Star_Trek_Season_1_Disc_1_t01.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 0, Title: ['Star_Trek_Season_1_Disc_1_t00.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 3, Title: ['Star_Trek_Season_1_Disc_1_t03.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 2, Title: ['Star_Trek_Season_1_Disc_1_t02.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 5, Title: ['Star_Trek_Season_1_Disc_1_t05.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 4, Title: ['Star_Trek_Season_1_Disc_1_t04.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 7, Title: ['Star_Trek_Season_1_Disc_1_t07.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 6, Title: ['Star_Trek_Season_1_Disc_1_t06.mkv'],
2016-06-14 16:12:01 - Makemkv - DEBUG - MakeMKV title info: Disc Title: ['Star Trek Season 1: Disc 1'], Title No.: 8, Title: ['Star_Trek_Season_1_Disc_1_t08.mkv'],
2016-06-14 16:12:01 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t01.mkv from Star Trek S1D1
2016-06-14 16:20:12 - Rip - INFO - It took 8 minute(s) to complete the ripping of Star_Trek_Season_1_Disc_1_t01.mkv from Star Trek S1D1
2016-06-14 16:20:12 - Eject - DEBUG - Ejecting drive: "/dev/sr0"
2016-06-14 16:20:12 - Eject - DEBUG - Attempting OS detection
2016-06-14 16:20:12 - Eject - DEBUG - OS detected as Unix
2016-06-14 16:20:17 - Eject - DEBUG - eject: device name is `/dev/sr0'
2016-06-14 16:20:17 - Eject - DEBUG - eject: expanded name is `/dev/sr0'
2016-06-14 16:20:17 - Eject - DEBUG - eject: `/dev/sr0' is mounted at `/media/cdrom'
2016-06-14 16:20:17 - Eject - DEBUG - eject: `/dev/sr0' is not a multipartition device
2016-06-14 16:20:17 - Eject - DEBUG - eject: trying to eject `/dev/sr0' using CD-ROM eject command
2016-06-14 16:20:17 - Eject - DEBUG - eject: CD-ROM eject command failed
2016-06-14 16:20:17 - Eject - DEBUG - eject: trying to eject `/dev/sr0' using SCSI commands
2016-06-14 16:20:17 - Eject - DEBUG - eject: SCSI eject succeeded
2016-06-14 16:20:17 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t00.mkv from Star Trek S1D1
2016-06-14 16:20:18 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:18 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:18 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:18 - Rip - INFO - See log for more details
2016-06-14 16:20:18 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t03.mkv from Star Trek S1D1
2016-06-14 16:20:18 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:18 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:18 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:18 - Rip - INFO - See log for more details
2016-06-14 16:20:18 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t02.mkv from Star Trek S1D1
2016-06-14 16:20:19 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:19 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:19 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:19 - Rip - INFO - See log for more details
2016-06-14 16:20:19 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t05.mkv from Star Trek S1D1
2016-06-14 16:20:20 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:20 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:20 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:20 - Rip - INFO - See log for more details
2016-06-14 16:20:20 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t04.mkv from Star Trek S1D1
2016-06-14 16:20:20 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:20 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:20 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:20 - Rip - INFO - See log for more details
2016-06-14 16:20:20 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t07.mkv from Star Trek S1D1
2016-06-14 16:20:21 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:21 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:21 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:21 - Rip - INFO - See log for more details
2016-06-14 16:20:21 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t06.mkv from Star Trek S1D1
2016-06-14 16:20:22 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:22 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:22 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:22 - Rip - INFO - See log for more details
2016-06-14 16:20:22 - Rip - DEBUG - Attempting to rip Star_Trek_Season_1_Disc_1_t08.mkv from Star Trek S1D1
2016-06-14 16:20:22 - Makemkv - ERROR - MakeMKV (rip_disc) returned status code: 11
2016-06-14 16:20:22 - Makemkv - ERROR - Failed to open disc
2016-06-14 16:20:22 - Rip - INFO - MakeMKV did not did not complete successfully
2016-06-14 16:20:22 - Rip - INFO - See log for more details
2016-06-14 16:20:22 - Compress - DEBUG - Compressing initialised
2016-06-14 16:20:22 - Compress - DEBUG - Looking for videos to compress
2016-06-14 16:20:22 - Compress - INFO - Compressing Star_Trek_Season_1_Disc_1_t01.mkv from Star Trek S1D1
JasonMillward commented 8 years ago

That's a bit of an oversight in autorippr.py#L201

If you can, run it without eject as you said it works, I'll push a fix shortly that should work for both TV and movie discs.

formeroosid commented 8 years ago

Cool, thanks.  Great utility btw. Kudos. 

Get Outlook for iOS