Write state fill when initializing

Needs to filter non-movie files
Fix script to work with new quvi interface