mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 17:09:19 +02:00
See #195: expose bitrate, duration and size in AP audio representations
This commit is contained in:
parent
4b21128e46
commit
8994326634
4 changed files with 27 additions and 1 deletions
|
@ -216,3 +216,6 @@ class LibraryTrack(models.Model):
|
|||
for chunk in r.iter_content(chunk_size=512):
|
||||
tmp_file.write(chunk)
|
||||
self.audio_file.save(filename, tmp_file)
|
||||
|
||||
def get_metadata(self, key):
|
||||
return self.metadata.get(key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue