From 27508952a1215fe269aefce911c73bb2d1b07d67 Mon Sep 17 00:00:00 2001
From: David Trattnig <david.trattnig@o94.at>
Date: Mon, 8 Jun 2020 12:47:08 +0200
Subject: [PATCH] Convert filepath as late as possible.

---
 modules/core/engine.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/core/engine.py b/modules/core/engine.py
index 7e044f64..44245a59 100644
--- a/modules/core/engine.py
+++ b/modules/core/engine.py
@@ -733,7 +733,9 @@ class SoundSystem():
         self.logger.info(SimpleUtil.pink("playlist.push('%s', '%s'" % (channel, uri)))
 
         self.enable_transaction()
-        result = self.__send_lqc_command__(self.client, channel, "playlist_push", uri)
+        audio_store = self.config.get("audiofolder")
+        filepath = EngineUtil.uri_to_filepath(audio_store, uri)
+        result = self.__send_lqc_command__(self.client, channel, "playlist_push", filepath)
         self.logger.info("%s.playlist_push result: %s" % (channel, result))
         self.disable_transaction()
 
-- 
GitLab