replaygain: Prepare song model for rg retrieval

This commit is contained in:
Daan Sprenkels
2017-09-16 13:15:35 +02:00
parent 7c69c71392
commit 9c03c9bdc5
3 changed files with 38 additions and 2 deletions

View File

@ -12,7 +12,11 @@ class Song(models.Model):
artist = models.TextField()
title = models.TextField()
hash = models.TextField()
duration = models.IntegerField()
duration = models.IntegerField(help_text="track duration in seconds")
rg_gain = models.DecimalField(max_digits=9, decimal_places=6,
blank=True, null=True, help_text="replaygain gain level")
rg_peak = models.DecimalField(max_digits=9, decimal_places=6,
blank=True, null=True, help_text="replaygain peak level")
old_id = models.TextField(blank=True, null=True, default=None)
deleted = models.BooleanField(default=False)