Create ydl._request_director when needed

This commit is contained in:
pukkandan
2024-02-25 06:06:42 +05:30
parent 5eedc208ec
commit 069b2aedae
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -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"""