Update viewer.py

Refresh playlist after any loop.