mirror of https://github.com/blackjack4494/yt-dlc
YoutubeIE: reuse instances of InfoExtractors (closes #998)
When a IE is added to the list, it's also added to a dictionary. When a IE is requested it first looks in the dictionary and if there's no instance it will create a new one. That way _real_initialize is only called once for each IE, saving time if it needs to login for example.pull/2/head
parent
81f0259b9e
commit
56c7366547
Loading…
Reference in New Issue