]> git.parisson.com Git - telecaster-client.git/commitdiff
add format to mountpoint
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 22 Jan 2023 15:27:22 +0000 (16:27 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 22 Jan 2023 15:27:22 +0000 (16:27 +0100)
telecaster/models.py

index 9135ee273aa15f23d5ae864d4902a4243c3c97c8..8896e438d0f7299c00afd6e6ca79d7ab8ea9e7c0 100644 (file)
@@ -125,7 +125,6 @@ class Station(Model):
         self.course = self.conference.course
         self.department = self.course.department.name
         self.organization = self.course.department.organization.name
-        self.mount_point = self.slug
 
         self.conf = xml2dict(conf_file)
         self.date = datetime.datetime.now().strftime("%Y")
@@ -167,7 +166,7 @@ class Station(Model):
                 self.output_dir = output_dir
                 self.record_dir = output_dir
 
-            station['infos']['short_name'] = self.mount_point
+            station['infos']['short_name'] = self.slug + '.' + station['media']['format']
             station['infos']['name'] = self.slug
             station['infos']['description'] = self.slug
             if self.conference.professor: