removed pdb; added logging info; renamed template var to video_exist; removed extra char from template