Comment 8 for bug 1095742

Revision history for this message
GermanGospel (siderunner) wrote :

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?