mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 20:21:55 +02:00
See #75: initial subsonic implementation that works with http://p.subfireplayer.net
This commit is contained in:
parent
9682299480
commit
bbd273404a
15 changed files with 774 additions and 48 deletions
|
@ -457,7 +457,13 @@ class TrackFile(models.Model):
|
|||
def filename(self):
|
||||
return '{}{}'.format(
|
||||
self.track.full_name,
|
||||
os.path.splitext(self.audio_file.name)[-1])
|
||||
self.extension)
|
||||
|
||||
@property
|
||||
def extension(self):
|
||||
if not self.audio_file:
|
||||
return
|
||||
return os.path.splitext(self.audio_file.name)[-1].replace('.', '', 1)
|
||||
|
||||
def save(self, **kwargs):
|
||||
if not self.mimetype and self.audio_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue