Avoid saving the playlist multiple times.
Debug logging when saving a playlist.
Merge pull request #4248 from abika/master

Fix for saving the playlist multiple times when adding files to it