Skip to content

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 <[email protected]>
@eharris eharris force-pushed the config-opt-cdparanoia branch from f623604 to c7d02d3 Compare September 15, 2022 09:49
@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.

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.

@eharris
Copy link
Author

eharris commented Dec 16, 2024

The global was necessary because the cdparanoia command is used in several places, so couldn't be restricted to just one module. Is there anything keeping this from getting merged?

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