Fix to only include unplayed episodes in playlist

Bug 1789 - Played episodes are still being included in playlists even if 'only sync unplayed' is checked. This patch fixes this problem.