Reply To: Windows Media Player -generated m3u playlists on NSLU2

#7152
samsaidi
Participant

Thanks Ron,
It’s probably easier to do that as a shell script, I used:


#!/bin/bash
echo "correcting absolute entries"
sed -i 's/\\192.168.1.77\disk 2\MUSIC/..\../g' /public/MUSIC/Windows Media Player/My Playlists/*m3u #
chown guest:everyone /public/MUSIC/Windows Media Player/My Playlists/*m3u

bearing in mind case-sensitivity (disk 2/DISK 2) and permissions (hence the chown)

Is it possible to add the script into the firefly .conf in such a way that it runs everytime a rescan is forced? That should solve the problem

Regards

Sam