mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
Create ydl._request_director when needed
This commit is contained in:
parent
5eedc208ec
commit
069b2aedae
2 changed files with 6 additions and 1 deletions
|
|
@ -68,6 +68,7 @@ class RequestDirector:
|
|||
def close(self):
|
||||
for handler in self.handlers.values():
|
||||
handler.close()
|
||||
self.handlers = {}
|
||||
|
||||
def add_handler(self, handler: RequestHandler):
|
||||
"""Add a handler. If a handler of the same RH_KEY exists, it will overwrite it"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue