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"""
self.ext,
self.cache_dir,
self.options)
-
+
# Encoding
os.system('flac '+args+' -o "'+self.dest+'" "'+ \
self.source+'" > /dev/null')
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
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)