Update playlist_to_mpd.py

Fixed indexing issue in seamless transition between scheduled automation blocks.