added handling for longer videos with gohstscript