The problem with this is that you can have refcount > 0 playlists too... so I think you have to have nested playlists in m3u's to make this work.