mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:29:16 +02:00
See #195: no update track information when fetching track from federation
This commit is contained in:
parent
80783f9a68
commit
a28078753b
4 changed files with 24 additions and 13 deletions
|
@ -87,6 +87,8 @@ def get_type_from_ext(extension):
|
|||
|
||||
def get_audio_file_data(f):
|
||||
data = mutagen.File(f)
|
||||
if not data:
|
||||
return
|
||||
d = {}
|
||||
d['bitrate'] = data.info.bitrate
|
||||
d['length'] = data.info.length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue