Cannot convert files in MTP sync when music database is on smb share
Environment
- Lollypop version: 0.9.908
- GTK+ version: 3.22.30-1ubuntu1
- Operating system: Kubuntu 18.04
Bug
When trying to convert music to mp3 via the MTP sync from a music database located on a smb share, the following error message appears:
[ERROR] 2018-12-30 17:13:27 MtpSync::__convert(): 'NoneType' object has no attribute 'replace'
The SMB share was added via Other locations
in the file dialog of the music settings.
When just moving the music to the MTP sync device (no mp3 conversion) it works fine. I think the error is in this line https://gitlab.gnome.org/World/lollypop/blob/master/lollypop/sync_mtp.py#L633 where the src
file's path is retrieved without resolving the smb://server.name/
path.
No error in lollypop is displayed, only on the console.