mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed cover loading for ".CUE" files
This commit is contained in:
parent
f9bf2856ae
commit
6bb0d7a3b1
@ -806,9 +806,9 @@ class Client(MPDClient):
|
||||
else:
|
||||
regex=re.compile(COVER_REGEX, flags=re.IGNORECASE)
|
||||
song_dir=os.path.join(self.lib_path, os.path.dirname(song_file))
|
||||
if song_dir.endswith(".cue"):
|
||||
if song_dir.lower().endswith(".cue"):
|
||||
song_dir=os.path.dirname(song_dir) # get actual directory of .cue file
|
||||
if os.path.exists(song_dir):
|
||||
if os.path.isdir(song_dir):
|
||||
for f in os.listdir(song_dir):
|
||||
if regex.match(f):
|
||||
path=os.path.join(song_dir, f)
|
||||
|
Loading…
Reference in New Issue
Block a user