forked from openlp/openlp
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
This commit is contained in:
parent
83bf85208e
commit
ccba9e7df5
@ -325,7 +325,10 @@ class ServiceItem(object):
|
|||||||
if u'media_length' in header:
|
if u'media_length' in header:
|
||||||
self.media_length = header[u'media_length']
|
self.media_length = header[u'media_length']
|
||||||
if u'background_audio' in header:
|
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)
|
self.theme_overwritten = header.get(u'theme_overwritten', False)
|
||||||
if self.service_item_type == ServiceItemType.Text:
|
if self.service_item_type == ServiceItemType.Text:
|
||||||
for slide in serviceitem[u'serviceitem'][u'data']:
|
for slide in serviceitem[u'serviceitem'][u'data']:
|
||||||
|
Loading…
Reference in New Issue
Block a user