Skip to content

Commit

Permalink
Add 'DISCTOTAL', 'DISCNUMBER' metatada to audio tracks
Browse files Browse the repository at this point in the history
Co-authored-by: Máximo Castañeda <[email protected]>
Signed-off-by: JoeLametta <[email protected]>
  • Loading branch information
JoeLametta and lonemadmax committed May 15, 2021
1 parent 8dad220 commit 9642e3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions whipper/common/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ def getTagList(self, number, mbdiscid):
tags['DATE'] = self.metadata.release
if self.metadata.tracks:
tags['TRACKTOTAL'] = str(len(self.metadata.tracks))
if self.metadata.discTotal is not None:
tags['DISCTOTAL'] = str(self.metadata.discTotal)
if self.metadata.discNumber is not None:
tags['DISCNUMBER'] = str(self.metadata.discNumber)

if number > 0:
tags['MUSICBRAINZ_RELEASETRACKID'] = mbidTrack
Expand Down

0 comments on commit 9642e3a

Please sign in to comment.