]> git.parisson.com Git - telemeta.git/commitdiff
Clean some stings
authoryomguy <>
Fri, 11 May 2007 15:34:50 +0000 (15:34 +0000)
committeryomguy <>
Fri, 11 May 2007 15:34:50 +0000 (15:34 +0000)
telemeta/export/core.py
telemeta/export/flac.py
telemeta/export/mp3.py

index 0378a7e99fb2c9a060fe8ad8d0b39e25ad64b63b..2cbac609f1af2b1af6d9a6fb08a3aea4e7c8238c 100644 (file)
@@ -96,7 +96,7 @@ class ExporterCore(Component):
         xml.dom.ext.PrettyPrint(doc, xml_file)
         xml_file.close()
 
-    def pre_process(self, item_id, source, metadata, ext, \
+    def pre_process(self, item_id, source, metadata, ext,
                     cache_dir, options=None):
         """ Pre processing of the core. Prepare the export path and
         return it"""
index ee6b247e520152a950a76662bdc264c6e8ed6553..f20849993f76be9b0d4989f496124aaab5cfe020 100644 (file)
@@ -114,7 +114,7 @@ class FlacExporter(ExporterCore):
                                          self.ext,
                                          self.cache_dir,
                                          self.options)
-            
+
             # Encoding
             os.system('flac '+args+' -o "'+self.dest+'" "'+ \
                       self.source+'" > /dev/null')
index 87eda98ed88e4f06462384f8b75a29252be5b279..c32e688b3019bd5243d9a09d34d568acdc04e359 100644 (file)
@@ -89,7 +89,7 @@ class Mp3Exporter(ExporterCore):
                 frame = mutagen.id3.Frames[frame_text](3,value)
                 id3.add(frame)
         id3.save()
-        
+
     def process(self, item_id, source, metadata, options=None):
         self.item_id = item_id
         self.source = source
@@ -150,12 +150,11 @@ class Mp3Exporter(ExporterCore):
                 chunk = proc.stdout.read(self.buffer_size)
                 yield chunk
                 file_out.write(chunk)           
-            
-            #file_in.close()
+           
             file_out.close()
             
             # Encoding
-            # os.system('lame '+args+' --tc "default" "'+self.source+
+            # os.system('lame '+args+' --tc "default" "'+self.source+
             #                        '" "'+self.dest+'"')
             
             # Post-proccessing (self)