Restore getRipResult method to fix regression
The regression was introduced in commit 3acc3ffed6.
The getRipResult method has been slimmed down to its essence.
Fixes #508.
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
@@ -99,6 +99,7 @@ class _CD(BaseCommand):
|
||||
self.ittoc = self.program.getFastToc(self.runner, self.device)
|
||||
|
||||
# already show us some info based on this
|
||||
self.program.getRipResult()
|
||||
print("CDDB disc id: %s" % self.ittoc.getCDDBDiscId())
|
||||
self.mbdiscid = self.ittoc.getMusicBrainzDiscId()
|
||||
print("MusicBrainz disc id %s" % self.mbdiscid)
|
||||
|
||||
@@ -29,6 +29,7 @@ import time
|
||||
from tempfile import NamedTemporaryFile
|
||||
from whipper.common import accurip, checksum, common, mbngs, path
|
||||
from whipper.program import cdrdao, cdparanoia
|
||||
from whipper.result import result
|
||||
from whipper.image import image
|
||||
from whipper.extern import freedb
|
||||
from whipper.extern.task import task
|
||||
@@ -134,6 +135,16 @@ class Program:
|
||||
itable.getMusicBrainzDiscId())
|
||||
return itable
|
||||
|
||||
def getRipResult(self):
|
||||
"""
|
||||
Return a new RipResult.
|
||||
|
||||
:rtype: result.RipResult
|
||||
"""
|
||||
assert self.result is None
|
||||
self.result = result.RipResult()
|
||||
return self.result
|
||||
|
||||
@staticmethod
|
||||
def addDisambiguation(template_part, metadata):
|
||||
"""Add disambiguation to template path part string."""
|
||||
|
||||
Reference in New Issue
Block a user