def downloadOneUrl(self, url, local_path): tumblr.downloadTumblrVideo(url, local_path) if (os.stat(local_path).st_size < 10*1024): with open('errorurls.txt', 'a+') as f: f.write(url + u'\n') os.remove(local_path) raise IOError("file size too small, probably dredown error")
def downloadOneUrl(self, url, local_path): tumblr.downloadTumblrVideo(url, local_path)