From 4c81e731a485d3ea84049ef6d568153c8b10e90b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 27 Oct 2013 23:01:20 +0000 Subject: Improves documentation --- MAT/audio.py | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'MAT/audio.py') diff --git a/MAT/audio.py b/MAT/audio.py index 3c6c7bc..dae9d75 100644 --- a/MAT/audio.py +++ b/MAT/audio.py @@ -1,5 +1,4 @@ -''' - Care about audio fileformat +''' Care about audio fileformat ''' try: @@ -13,31 +12,27 @@ import mutagenstripper class MpegAudioStripper(parser.GenericParser): - ''' - Represent mpeg audio file (mp3, ...) + ''' Represent mpeg audio file (mp3, ...) ''' def _should_remove(self, field): return field.name in ("id3v1", "id3v2") class OggStripper(mutagenstripper.MutagenStripper): - ''' - Represent an ogg vorbis file + ''' Represent an ogg vorbis file ''' def _create_mfile(self): self.mfile = OggVorbis(self.filename) class FlacStripper(mutagenstripper.MutagenStripper): - ''' - Represent a Flac audio file + ''' Represent a Flac audio file ''' def _create_mfile(self): self.mfile = FLAC(self.filename) def remove_all(self): - ''' - Remove the "metadata" block from the file + ''' Remove the "metadata" block from the file ''' super(FlacStripper, self).remove_all() self.mfile.clear_pictures() @@ -45,14 +40,12 @@ class FlacStripper(mutagenstripper.MutagenStripper): return True def is_clean(self): - ''' - Check if the "metadata" block is present in the file + ''' Check if the "metadata" block is present in the file ''' return super(FlacStripper, self).is_clean() and not self.mfile.pictures def get_meta(self): - ''' - Return the content of the metadata block if present + ''' Return the content of the metadata block if present ''' metadata = super(FlacStripper, self).get_meta() if self.mfile.pictures: -- cgit v1.3