← Back to team overview

openlp-core team mailing list archive

[Bug 1095742] Re: Portable apps storing drive letter in db

 

Scott, I don't think this has to do with the absolute path in
songs.sqlite but the absolute path in the osz file itself. The portable
edition copies all the files embedded in the osz file to the portable
folder data/servicemanager/ and than changes the link to that path. That
works correct for MP3s in media module but not in songs module.

204_Test_MP3-Path-in-Song.osz\204_Test_MP3-Path-in-Song.osj has
"background_audio": ["D:\\OpenLPPortable\\Data\\songs\\audio\\3\\John Waller - While I'm Waiting (from the FIREPROOF Soundtrack).mp3"]

At opening of the osz the MP3 is copied to
D:\OpenLPPortable\Data\servicemanager\John Waller - While I'm Waiting (from the FIREPROOF Soundtrack).mp3

Can someone correct that error, please? Thanks and be blessed!

---
Traceback (most recent call last):
  File "D:\OpenLP_Code\2.0\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.plugins.songs.lib.mediaitem", line 582, in serviceLoad
  File "D:\OpenLP_Code\2.0\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.plugins.songs.lib.mediaitem", line 98, in _updateBackgroundAudio
  File "D:\OpenLP_Code\2.0\build\pyi.win32\OpenLP\out00-PYZ.pyz\shutil", line 82, in copyfile
IOError: [Errno 2] No such file or directory: u"D:\\OpenLPPortable\\Data\\songs\\audio\\3\\John Waller - While I'm Waiting (from the FIREPROOF Soundtrack).mp3"

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