refactor YouTube subtitles code, it was ugly (my bad)
This commit is contained in:
parent
69a3883199
commit
056d857571
2 changed files with 31 additions and 37 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue