Skip to content

Commit

Permalink
Add 'TRACKTOTAL', '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 7170b95 commit 5238d8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions whipper/common/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ def getTagList(self, number, mbdiscid):
if self.metadata:
if self.metadata.release is not None:
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 5238d8d

Please sign in to comment.