Skip to content

Commit

Permalink
display MCN if available
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyJD committed Apr 26, 2013
1 parent 2995573 commit 966854c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,14 @@ def __init__(self, device, backend, verified=False):
def id(self):
return self._disc.id

@property
def mcn(self):
mcn = self._disc.mcn
if mcn and int(mcn) > 0:
return mcn
else:
return None

@property
def tracks(self):
return self._disc.tracks
Expand Down Expand Up @@ -575,6 +583,8 @@ def get_disc(device, backend, verified=False):
"""
disc = Disc(device, backend, verified)
print('\nDiscID:\t\t%s' % disc.id)
if disc.mcn:
print('MCN/EAN:\t%s' % disc.mcn)
print('Tracks on disc:\t%d' % len(disc.tracks))
return disc

Expand Down

0 comments on commit 966854c

Please sign in to comment.