This commit is contained in:
Jon Tibble 2012-03-17 14:44:23 +00:00
parent 5ded814527
commit a9d70a2d2e
2 changed files with 2 additions and 2 deletions

View File

@ -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']

View File

@ -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.