From debc65db5de0ba0cea9f67381c7a7732ddc7d70b Mon Sep 17 00:00:00 2001 From: Ade Date: Mon, 13 Mar 2017 11:01:21 +1300 Subject: [PATCH] Temp processing fixup Fixes --- headphones/postprocessor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 9a7a4e9c..c4ff55ac 100755 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -353,11 +353,11 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list, elif Kind == "cue_split": new_folder = os.path.split(albumpath)[0] - # Need to update the downloaded track list with the new location. - # Could probably just throw in the "headphones-modified" folder, - # but this is good to make sure we're not counting files that may have failed to move + # Need to update the downloaded track list with the new location. + # Could probably just throw in the "headphones-modified" folder, + # but this is good to make sure we're not counting files that may have failed to move + if new_folder: downloaded_track_list = [] - for r, d, f in os.walk(albumpath): for files in f: if any(files.lower().endswith('.' + x.lower()) for x in headphones.MEDIA_FORMATS):