Now store source AP track file on track_file

This commit is contained in:
Eliot Berriot 2018-04-06 15:20:53 +02:00
parent 04d710e690
commit 8db832f03b
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
11 changed files with 167 additions and 182 deletions

View file

@ -414,6 +414,12 @@ class TrackFile(models.Model):
Track, related_name='files', on_delete=models.CASCADE)
audio_file = models.FileField(upload_to='tracks/%Y/%m/%d', max_length=255)
source = models.URLField(null=True, blank=True)
creation_date = models.DateTimeField(default=timezone.now)
modification_date = models.DateTimeField(auto_now=True)
# points to the URL of the original trackfile ActivityPub Object
federation_source = models.URLField(null=True, blank=True)
duration = models.IntegerField(null=True, blank=True)
acoustid_track_id = models.UUIDField(null=True, blank=True)
mimetype = models.CharField(null=True, blank=True, max_length=200)