From 97cd7b6ffeab639b5109216cf5056c78b1b5358d Mon Sep 17 00:00:00 2001 From: yomguy <> Date: Mon, 21 May 2007 21:00:27 +0000 Subject: [PATCH] Fixed syntax problem --- telemeta/export/flac.py | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/telemeta/export/flac.py b/telemeta/export/flac.py index 43c3d623..5fb2f8b6 100644 --- a/telemeta/export/flac.py +++ b/telemeta/export/flac.py @@ -119,52 +119,16 @@ class FlacExporter(ExporterCore): self.ext, self.cache_dir, self.options) -<<<<<<< .mine - - # Initializing - - command = 'sox "'+self.source+'" -q -w -r 44100 -t wav -c2 - '+ - '| flac '+args+' -c -' - - chunk = 0 - file_out = open(self.dest,'w') - - # Processing - proc = subprocess.Popen(command, - shell=True, - bufsize=self.buffer_size, - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - close_fds=True) -======= except: yield 'ExporterError [3]: pre_process' ->>>>>>> .r109 -<<<<<<< .mine - chunk = proc.stdout.read(self.buffer_size) - yield chunk - file_out.write(chunk) - - # Streaming - while chunk: - chunk = proc.stdout.read(self.buffer_size) -======= # Processing (streaming + cache writing) try: stream = self.core_process(self.command,self.buffer_size,self.dest) for chunk in stream: ->>>>>>> .r109 yield chunk -<<<<<<< .mine - file_out.write(chunk) - - #file_in.close() - file_out.close() -======= except: yield 'ExporterError: core_process' ->>>>>>> .r109 # Post-proccessing try: @@ -181,3 +145,4 @@ class FlacExporter(ExporterCore): # Encoding #os.system('flac '+args+' -o "'+self.dest+'" "'+ \ # self.source+'" > /dev/null') + -- 2.39.5