Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config file option to set cdparanoia command #571

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

eharris
Copy link

@eharris eharris commented Sep 15, 2022

This allows for setting the cdparanoia executable via the config file like so:

[main]
cdparanoia = cdparanoia

This does not allow for setting the option via the command line, as that would have required more extensive changes, since cdparanoia is used for multiple commands. But this does now allow for code to be added to make whipper smarter and possibly able to detect and self-configure to use the best cdparanoia version, if multiple versions are available.

Resolves #220
Partially addresses #244
Provides workaround for #234

Resolves whipper-team#220
Partially addresses whipper-team#244
Provides workaround for whipper-team#234

Signed-off-by: Evan Harris <eharris@puremagic.com>
Signed-off-by: Evan Harris <eharris@puremagic.com>
Signed-off-by: Evan Harris <eharris@puremagic.com>
@MerlijnWajer
Copy link
Collaborator

Sorry for getting back to you so late on this, but I'm trying to help get these pull requests merged.

I think the pull request looks fine, the only thing I don't quite like is the usage of 'global' to change the value of the variable in whipper/program/cdparanoia.py, but I don't have any particular strong objections, so we could merge it as-is.

@@ -101,6 +101,10 @@ def getDefeatsCache(self, vendor, model, release):
option = self._getDriveOption(vendor, model, release, 'defeats_cache')
return option == 'True'

def getCdparanoia(self, vendor, model, release):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def getCdparanoia(self, vendor, model, release):
def getCdParanoia(self, vendor, model, release):

Same casing as other instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow selecting alternative *paranoia implementations
3 participants