mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 23:28:26 +02:00
Now display CLI instructions to download a set of tracks
This commit is contained in:
parent
c34ea44687
commit
e8eaf6db94
6 changed files with 108 additions and 6 deletions
|
@ -362,6 +362,12 @@ class TrackFile(models.Model):
|
|||
'api:v1:trackfiles-serve', kwargs={'pk': self.pk})
|
||||
return self.audio_file.url
|
||||
|
||||
@property
|
||||
def filename(self):
|
||||
return '{}{}'.format(
|
||||
self.track.full_name,
|
||||
os.path.splitext(self.audio_file.name)[-1])
|
||||
|
||||
|
||||
class ImportBatch(models.Model):
|
||||
creation_date = models.DateTimeField(default=timezone.now)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue