mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-10 13:49:32 +01:00
Return false on non existing dirs
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user