]> git.parisson.com Git - telecaster-client.git/commitdiff
add mountpoint
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 5 Feb 2024 16:14:09 +0000 (17:14 +0100)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 5 Feb 2024 16:14:09 +0000 (17:14 +0100)
telecaster/models.py

index a09398207b16cdb86ea4e94798d74155141e67a1..9e96fcb1f7c9f3ef88237ddc280a887b1c63b6d1 100644 (file)
@@ -178,6 +178,7 @@ class Station(Model):
                 slug = self.slug + '_' + station['infos']['id']
             else:
                 slug = self.slug
+            station['server']['mountpoint'] = slug + '.' + station['media']['format']
             station['infos']['short_name'] = slug + '.' + station['media']['format']
             station['infos']['name'] = slug
             station['infos']['description'] = slug