mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 21:01:54 +02:00
See #195: set bitrate, duration and size when importing file
This commit is contained in:
parent
7425a8ea4d
commit
1bc4ceab9e
9 changed files with 126 additions and 7 deletions
|
@ -54,6 +54,10 @@ class TrackFileFactory(factory.django.DjangoModelFactory):
|
|||
audio_file = factory.django.FileField(
|
||||
from_path=os.path.join(SAMPLES_PATH, 'test.ogg'))
|
||||
|
||||
bitrate = None
|
||||
size = None
|
||||
duration = None
|
||||
|
||||
class Meta:
|
||||
model = 'music.TrackFile'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue