Allow configuring whether to auto close the drive's tray

Fixes #488.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
JoeLametta
2020-09-23 17:41:48 +00:00
parent b754b2b0bf
commit 8a1c0fabfc
4 changed files with 13 additions and 3 deletions

View File

@@ -80,7 +80,8 @@ CD in the AccurateRip database."""
# if necessary, load and unmount
logger.info('checking device %s', device)
utils.load_device(device)
if self.options.drive_auto_close is True:
utils.load_device(device)
utils.unmount_device(device)
# first get the Table Of Contents of the CD