diff options
Diffstat (limited to 'lib/audio.py')
| -rw-r--r-- | lib/audio.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/audio.py b/lib/audio.py index 613a0cb..20cae6a 100644 --- a/lib/audio.py +++ b/lib/audio.py | |||
| @@ -53,7 +53,8 @@ class OggStripper(parser.GenericParser): | |||
| 53 | ''' | 53 | ''' |
| 54 | metadata = {} | 54 | metadata = {} |
| 55 | mfile = OggVorbis(self.filename) | 55 | mfile = OggVorbis(self.filename) |
| 56 | [metadata[key] = value for key, value in mfile.tags] | 56 | for key, value in mfile.tags: |
| 57 | metadata[key] = value | ||
| 57 | return metadata | 58 | return metadata |
| 58 | 59 | ||
| 59 | class Apev2Stripper(parser.GenericParser): | 60 | class Apev2Stripper(parser.GenericParser): |
| @@ -89,7 +90,8 @@ class Apev2Stripper(parser.GenericParser): | |||
| 89 | metadata = {} | 90 | metadata = {} |
| 90 | mfile = APEv2File(self.filename) | 91 | mfile = APEv2File(self.filename) |
| 91 | if mfile.tags is not None: | 92 | if mfile.tags is not None: |
| 92 | [metadata[key] = value for key, value in mfile.tags] | 93 | for key, value in mfile.tags: |
| 94 | metadata[key] = value | ||
| 93 | return metadata | 95 | return metadata |
| 94 | 96 | ||
| 95 | 97 | ||
| @@ -127,7 +129,8 @@ class FlacStripper(parser.GenericParser): | |||
| 127 | metadata = {} | 129 | metadata = {} |
| 128 | mfile = FLAC(self.filename) | 130 | mfile = FLAC(self.filename) |
| 129 | if mfile.tags is not None: | 131 | if mfile.tags is not None: |
| 130 | [metadata[key] = value for key, value in mfile.tags] | 132 | for key, value in mfile.tags: |
| 133 | metadata[key] = value | ||
| 131 | if mfile.pictures != []: | 134 | if mfile.pictures != []: |
| 132 | metadata['picture :'] = 'yes' | 135 | metadata['picture :'] = 'yes' |
| 133 | return metadata | 136 | return metadata |
