add function is  when encounter download

add function is  when encounter download error ,it will automatic
redownload