We have moved to a new Sailfish OS Forum. Please start new discussions there.

# [bug][1.0.4.20] sdcard location changed - caused problem with existing playlists?

Hi,

I'm not sure if this has occurred with anyone else?

There is an issue with the latest update [1.0.4.20] whereby existing playlists seem to be rendered useless (if your files are on the SDCard). It looks like the format has changed for the sdcard file location (inside the playlist pls files).

The impact is that the songs on sdcard in the playlist don't play anymore.

For example: Originally files added to a playlist use this format:

File2=file:///run/user/100000/media/sdcard/music/Somefilename.mp3


Now files added to a playlist use this format:

File2=file:///media/sdcard/1099-B00D/music/Somefilename.mp3


Any ideas why the 1.0.4.20 update didn't just automatically adjust those locations?

I will probably just manually edit the playlists on my desktop machine, but thought I would ask here anyway.

Thanks

edit retag close delete

Sort by » oldest newest most voted

Note that you can use sed in the terminal to do the changes easily:

$mountpoint=/media/sdcard/*$ cd ~/Music/playlists
$sed "s@file:///run/user/100000/media/sdcard@file://$mountpoint@" -i *.pls

more

Thanks, but that command didn't work for me though. I also tried inputting the "file:///media/sdcard/1099-B00D" explicitly into the string manually instead of \$mountpoint. It seemed to output the correct stuff to the console but didn't seem to change the file contents. I also tried the g switch at the end. I also tried logging in using devel-su first, and it didn't change the contents of the files either.

I've just overwritten the playlist files with some I edited on my desktop instead (yuck).

Thanks

( 2014-03-19 01:32:39 +0200 )edit