diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index 42e140381..a82941341 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -300,6 +300,7 @@ class ServiceItem(object): ``path`` Defaults to *None*. Any path data, usually for images. """ + log.debug(u'set_from_service called with path %s' % path) header = serviceitem[u'serviceitem'][u'header'] self.title = header[u'title'] self.name = header[u'name'] diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index a8ab56f69..7da757efd 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -483,8 +483,7 @@ class ServiceManager(QtGui.QWidget): for i, filename in \ enumerate(service_item[u'header'][u'background_audio']): new_file = os.path.join(u'audio', - item[u'service_item']._uuid, - os.path.split(filename)[1]) + item[u'service_item']._uuid, filename) audio_files.append((filename, new_file)) service_item[u'header'][u'background_audio'][i] = new_file # Add the service item to the service.