diff --git a/headphones/api.py b/headphones/api.py index 5b846b54..a8b97c02 100644 --- a/headphones/api.py +++ b/headphones/api.py @@ -333,13 +333,13 @@ class Api(object): def _forceProcess(self, **kwargs): if 'album_dir' in kwargs: - album_dir = kwargs['album_dir'] - dir = None - postprocessor.forcePostProcess(self, dir, album_dir) - elif 'dir' in kwargs: - self.dir = kwargs['dir'] + album_dir = kwargs['album_dir'] + dir = None + postprocessor.forcePostProcess(self, dir, album_dir) + elif 'dir' in kwargs: + self.dir = kwargs['dir'] postprocessor.forcePostProcess(self.dir) - else: + else: postprocessor.forcePostProcess() def _forceActiveArtistsUpdate(self, **kwargs): diff --git a/headphones/librarysync.py b/headphones/librarysync.py index df800bed..367d160c 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -14,7 +14,6 @@ # along with Headphones. If not, see . import os -import headphones import math import headphones