Skip to content

A feature-rich command-line audio/video downloader

quiet the HTMLParser debug info - closes #517

Filippo Valsorda5d40a470a2c6
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index a64937b4c1..56d0461456 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -83,7 +83,7 @@ class IDParser(HTMLParser.HTMLParser):
HTMLParser.HTMLParser.__init__(self)
def error(self, message):
- print >> sys.stderr, self.getpos()
+ #print >> sys.stderr, self.getpos()
if self.error_count > 10 or self.started:
raise HTMLParser.HTMLParseError(message, self.getpos())
self.rawdata = '\n'.join(self.html.split('\n')[self.getpos()[0]:]) # skip one line