diff options
| author | jvoisin | 2018-04-04 23:21:48 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-04 23:21:48 +0200 |
| commit | 0239ab3b6a6ae38dbf5ba439f91f0cee498711a9 (patch) | |
| tree | 19159991a5fe0d504ebbd2396800a9a1fda38a09 /src/audio.py | |
| parent | 9fa76c4c2038a776cc94af5d9f307bbaad52083c (diff) | |
Add some white lines to make the code more compliant
Diffstat (limited to 'src/audio.py')
| -rw-r--r-- | src/audio.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio.py b/src/audio.py index a56828f..4a385b2 100644 --- a/src/audio.py +++ b/src/audio.py | |||
| @@ -4,6 +4,7 @@ import mutagen | |||
| 4 | 4 | ||
| 5 | from . import abstract | 5 | from . import abstract |
| 6 | 6 | ||
| 7 | |||
| 7 | class MutagenParser(abstract.AbstractParser): | 8 | class MutagenParser(abstract.AbstractParser): |
| 8 | def get_meta(self): | 9 | def get_meta(self): |
| 9 | f = mutagen.File(self.filename) | 10 | f = mutagen.File(self.filename) |
| @@ -18,6 +19,7 @@ class MutagenParser(abstract.AbstractParser): | |||
| 18 | f.save() | 19 | f.save() |
| 19 | return True | 20 | return True |
| 20 | 21 | ||
| 22 | |||
| 21 | class MP3Parser(MutagenParser): | 23 | class MP3Parser(MutagenParser): |
| 22 | mimetypes = {'audio/mpeg', } | 24 | mimetypes = {'audio/mpeg', } |
| 23 | 25 | ||
| @@ -28,8 +30,10 @@ class MP3Parser(MutagenParser): | |||
| 28 | metadata[key.rstrip(' \t\r\n\0')] = ', '.join(map(str, meta[key].text)) | 30 | metadata[key.rstrip(' \t\r\n\0')] = ', '.join(map(str, meta[key].text)) |
| 29 | return metadata | 31 | return metadata |
| 30 | 32 | ||
| 33 | |||
| 31 | class OGGParser(MutagenParser): | 34 | class OGGParser(MutagenParser): |
| 32 | mimetypes = {'audio/ogg', } | 35 | mimetypes = {'audio/ogg', } |
| 33 | 36 | ||
| 37 | |||
| 34 | class FLACParser(MutagenParser): | 38 | class FLACParser(MutagenParser): |
| 35 | mimetypes = {'audio/flac', } | 39 | mimetypes = {'audio/flac', } |
