diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index e102a4d2..b4381934 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -36,6 +36,8 @@ def find_in_path(albumpath, extra_formats=None, use_MF=True): Finds files matching the MEDIA_FORMATS and returns them as a list. If use_MF is disabled MEDIA_FORMATS will be ignored. """ + if not os.path.isdir(albumpath): + return False found_tracks = [] if extra_formats: if type(extra_formats) is not list: