improved .cue support

This commit is contained in:
Martin Wagner 2022-03-25 18:41:31 +01:00
parent cbc5735d52
commit a90b45438f

View File

@ -875,7 +875,7 @@ class Client(MPDClient):
def get_absolute_path(self, uri): def get_absolute_path(self, uri):
if self.lib_path is not None: if self.lib_path is not None:
path=os.path.join(self.lib_path, uri) path=re.sub(r"(.*\.cue)\/track\d+$", r"\1", os.path.join(self.lib_path, uri), flags=re.IGNORECASE)
if os.path.isfile(path): if os.path.isfile(path):
return path return path
else: else: