refactor YouTube subtitles code, it was ugly (my bad)

This commit is contained in:
Filippo Valsorda 2012-12-20 11:26:38 +01:00
parent 69a3883199
commit 056d857571
2 changed files with 31 additions and 37 deletions

View file

@ -465,14 +465,6 @@ class ContentTooShortError(Exception):
self.downloaded = downloaded
self.expected = expected
class Trouble(Exception):
"""Trouble helper exception
This is an exception to be handled with
FileDownloader.trouble
"""
class YoutubeDLHandler(compat_urllib_request.HTTPHandler):
"""Handler for HTTP requests and responses.