From ce7921f413c08c5bb447b28f33bdc9f5f7570b0f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 5 Feb 2024 16:42:24 +0100 Subject: [PATCH] add (video source) id management for mountpoint --- telecaster/models.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/telecaster/models.py b/telecaster/models.py index aae1479..a093982 100644 --- a/telecaster/models.py +++ b/telecaster/models.py @@ -174,15 +174,18 @@ class Station(Model): self.output_dir = output_dir self.record_dir = output_dir - station['infos']['short_name'] = self.slug + '.' + station['media']['format'] - station['infos']['name'] = self.slug - station['infos']['description'] = self.slug + if 'id' in station['infos']: + slug = self.slug + '_' + station['infos']['id'] + else: + slug = self.slug + station['infos']['short_name'] = slug + '.' + station['media']['format'] + station['infos']['name'] = slug + station['infos']['description'] = slug if self.conference.professor: station['relay']['author'] = unicode(self.conference.professor.user.username) else: station['relay']['author'] = 'None' - #FIXME: only one format in deefuzzer conf file self.format = station['media']['format'] self.deefuzzer_file = 'cache' + os.sep + 'station_' + \ station['media']['format'] + '.yml' -- 2.39.5