diff options
| author | jvoisin | 2011-07-28 19:58:50 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-28 19:58:50 +0200 |
| commit | 4ce3a446bb7d053962053895195e0feab18160a4 (patch) | |
| tree | 98f4762869a731d6355766da08f5fdd6faece7c7 | |
| parent | 37ba35d1b2361b742f5aeab1ed7a202a54052a43 (diff) | |
Fix a problem that occured when mutagen was not installed.
| -rw-r--r-- | lib/audio.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/audio.py b/lib/audio.py index 0c8859d..73030af 100644 --- a/lib/audio.py +++ b/lib/audio.py | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | ''' | 1 | ''' |
| 2 | Care about audio fileformat | 2 | Care about audio fileformat |
| 3 | ''' | 3 | ''' |
| 4 | from mutagen.flac import FLAC | 4 | try: |
| 5 | from mutagen.apev2 import APEv2 | 5 | from mutagen.flac import FLAC |
| 6 | from mutagen.oggvorbis import OggVorbis | 6 | from mutagen.apev2 import APEv2 |
| 7 | 7 | from mutagen.oggvorbis import OggVorbis | |
| 8 | except: | ||
| 9 | pass | ||
| 8 | 10 | ||
| 9 | 11 | ||
| 10 | import parser | 12 | import parser |
