+ def get_duration(self, input_path):
+ d = get_duration(input_path)
+ if self.intro_flac:
+ d += get_duration(self.intro_flac.path)
+ if self.outro_flac:
+ d += get_duration(self.outro_flac.path)
+ return d
+
+ def prepare_audio(self, input_path):
+ files = []
+ if self.intro_flac:
+ files.append(self.intro_flac.path)
+ files.append(input_path)
+ if self.outro_flac:
+ files.append(self.outro_flac.path)
+ return concat_audio(files)
+