From ec8c3157d9bc0b9b5515a1d7c0d616e32e87df80 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Fri, 17 Aug 2012 17:42:30 +0530 Subject: [PATCH] More bug fixes. Fixed lower() function later on in moveFiles --- headphones/postprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index f76fbac0..f6fde523 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -459,10 +459,10 @@ def moveFiles(albumpath, release, tracks): for file_to_move in files_to_move: - if any(file_to_move.lower.endswith(x) for x in headphones.LOSSY_MEDIA_FORMATS): + if any(file_to_move.lower().endswith('.' + x.lower()) for x in headphones.LOSSY_MEDIA_FORMATS): helpers.smartMove(file_to_move, lossy_destination_path) - elif any(files.lower.endswith(x) for x in headphones.LOSSLESS_MEDIA_FORMATS): + elif any(file_to_move.lower().endswith('.' + x.lower()) for x in headphones.LOSSLESS_MEDIA_FORMATS): helpers.smartMove(file_to_move, lossless_destination_path) # If it's a non-music file, move it to both dirs