title: Run youtube-dl periodically
body: <p>Say I have some problems with my connection to youtube, and keep getting WinError 10060 when downloading a full channel from time to time - and most importantly got desperate from trying to fix that (The problem is not with a specific video, as when I start over it downloads normally).</p>
  
  <p>My aim is to bypass this by creating a batch file with an infinite loop which will run youtube-dl again with the same parameters after this error occurs.</p>
  
  <p>I've been searching for a solution and my current loop bat contains this:</p>
  
  <pre><code>:LOOP
  timeout /T 1 /NOBREAK
  call MainDownload.bat
  echo "Stop Recorded"&gt;&gt; log.txt
  if not ErrorLevel 1 goto :LOOP
  </code></pre>
  
  <p>After trying this I can see a "stop recorded" on my log when it happens, but the MainDownload.bat won't run again.</p>
  
  <p>Can anyone offer a solution which will cause this to run infinitely until I manually close it?</p>
  
  <p>Thanks in advance.</p>