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

Include MusicBrainz Release URL in log output #382

Merged
merged 2 commits into from
Mar 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions whipper/command/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def do(self):
_, self.program.result.vendor, self.program.result.model, \
self.program.result.release = \
cdio.Device(self.device).get_hwinfo()
self.program.result.metadata = self.program.metadata

self.doCommand()

Expand Down
5 changes: 4 additions & 1 deletion whipper/result/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ def logRip(self, ripResult, epoch):
lines.append(" CDDB Disc ID: %s" % ripResult. table.getCDDBDiscId())
lines.append(" MusicBrainz Disc ID: %s" %
ripResult. table.getMusicBrainzDiscId())
lines.append(" MusicBrainz lookup url: %s" %
lines.append(" MusicBrainz lookup URL: %s" %
ripResult. table.getMusicBrainzSubmitURL())
if ripResult.metadata:
lines.append(" MusicBrainz Release URL: %s" %
ripResult.metadata.url)
lines.append("")

# TOC section
Expand Down
3 changes: 3 additions & 0 deletions whipper/result/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class RipResult:
@ivar offset: sample read offset
@ivar table: the full index table
@type table: L{whipper.image.table.Table}
@ivar metadata: disc metadata from MusicBrainz (if available)
@type metadata: L{whipper.common.mbngs.DiscMetadata}

@ivar vendor: vendor of the CD drive
@ivar model: model of the CD drive
Expand All @@ -88,6 +90,7 @@ class RipResult:
table = None
artist = None
title = None
metadata = None

vendor = None
model = None
Expand Down