Skip to content

Commit

Permalink
Forgot to check for .flac files in MediaDirWalker class
Browse files Browse the repository at this point in the history
  • Loading branch information
thedonvaughn committed Dec 7, 2011
1 parent 7afaa68 commit 8e1fb57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cover_grabber/media_dir_walker.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ def process_dir(self, args, dirname, filenames):
if ".mp3" in file: if ".mp3" in file:
filehandler = MP3Handler(dirname, filenames) # Set the File Handler to be MP3 filehandler = MP3Handler(dirname, filenames) # Set the File Handler to be MP3
break break

if ".ogg" in file: if ".ogg" in file:
filehandler = OGGHandler(dirname, filenames) # Set the File Handler to be OGG 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 we have a file handler, then continue
if filehandler: if filehandler:
# If the directory actually contains MP3s (or whatever media file extension) then continue # If the directory actually contains MP3s (or whatever media file extension) then continue
Expand Down

0 comments on commit 8e1fb57

Please sign in to comment.