mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
quiet the HTMLParser debug info - closes #517
This commit is contained in:
parent
4cc391461a
commit
5d40a470a2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ def __init__(self, id):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue