openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #22839
[Bug 1095742] Re: Portable apps storing drive letter in db
OpenLPPortable204\App\OpenLP\plugins\songs\lib\mediaitem.py
---
def _updateBackgroundAudio(self, song, item):
song.media_files = []
for i, bga in enumerate(item.background_audio):
dest_file = os.path.join(
AppLocation.get_section_data_path(self.plugin.name),
u'audio', str(song.id), os.path.split(bga)[1])
check_directory_exists(os.path.split(dest_file)[0])
shutil.copyfile(os.path.join(
AppLocation.get_section_data_path(
u'servicemanager'), bga), #ERROR: Should be this? os.path.split(bga)[1]),
dest_file)
---
It should be copyfile(file from servicemanager path to dest_file), right?
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1095742
Title:
Portable apps storing drive letter in db
Status in OpenLP - Worship Presentation Software:
New
Status in OpenLP 2.0 series:
New
Status in OpenLP trunk series:
New
Bug description:
From Bob Donkin
http://forums.openlp.org/discussion/2014/portable-app-assigning-drive-letter-in-sqlite-database
I am using the portable app version of openlp. I have linked many songs
to audio files(mp3).
The problem I have is the sqlite database has
given an absolute address for the audio file eg: F:\PortableApps\OpenLPPortable\Data\songs\audio\205\09-I cannot tell.mp3 .
However
when I plug in the USB stick at Church the computer assigns it the
drive letter E: so none of the audio works. Would it be possible on the
next release to use a relative address eg: songs\audio\205\09-I cannot
tell.mp3
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1095742/+subscriptions
References