Add a note on MaxDownloadsReached (#732, thanks to CBGoodBuddy)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 28 Mar 2013 23:19:58 +0000 (00:19 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 28 Mar 2013 23:20:13 +0000 (00:20 +0100)
youtube_dl/FileDownloader.py

index 725d4a0160388b3faa8c7a5b09cc83a8726170f8..96130152ddd5d0855d2eed96e11c6cd41d0fb29c 100644 (file)
@@ -548,6 +548,9 @@ class FileDownloader(object):
                 except ExtractorError as de: # An error we somewhat expected
                     self.trouble(u'ERROR: ' + compat_str(de), de.format_traceback())
                     break
+                except MaxDownloadsReached:
+                    self.to_screen(u'[info] Maximum number of downloaded files reached.')
+                    raise
                 except Exception as e:
                     if self.params.get('ignoreerrors', False):
                         self.trouble(u'ERROR: ' + compat_str(e), tb=compat_str(traceback.format_exc()))