Update main.py

fix playlist endless loop