From ccba9e7df53e6e26da8c6a01d39ed0981a9a5645 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 12 Mar 2012 23:05:39 +0200 Subject: [PATCH] Fixed bug #888815 where the files were not being loaded into the audio player because their paths were not absolute. Now when the files are loaded from the saved service file, the paths recreated properly. Fixes: https://launchpad.net/bugs/888815 --- openlp/core/lib/serviceitem.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index 9878e1f24..42e140381 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -325,7 +325,10 @@ class ServiceItem(object): if u'media_length' in header: self.media_length = header[u'media_length'] if u'background_audio' in header: - self.background_audio = header[u'background_audio'] + self.background_audio = [] + for filename in header[u'background_audio']: + # Give them real file paths + self.background_audio.append(os.path.join(path, filename)) self.theme_overwritten = header.get(u'theme_overwritten', False) if self.service_item_type == ServiceItemType.Text: for slide in serviceitem[u'serviceitem'][u'data']: