Permalink
Browse files

Forgot to check for .flac files in MediaDirWalker class

  • Loading branch information...
1 parent 7afaa68 commit 8e1fb57f85ca8d6b280f5093829d69b89241300d @thedonvaughn committed Dec 7, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 cover_grabber/media_dir_walker.py
@@ -48,9 +48,15 @@ def process_dir(self, args, dirname, filenames):
if ".mp3" in file:
filehandler = MP3Handler(dirname, filenames) # Set the File Handler to be MP3
break
+
if ".ogg" in file:
filehandler = OGGHandler(dirname, filenames) # Set the File Handler to be OGG
+ break
+ if ".flac" in file:
+ filehandler = FLACHandler(dirname, filenames) # Set the File Handler to be OGG
+ break
+
# If we have a file handler, then continue
if filehandler:
# If the directory actually contains MP3s (or whatever media file extension) then continue

0 comments on commit 8e1fb57

Please sign in to comment.