diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-23 04:45:30 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-23 05:06:39 +0530 |
commit | 251ae04e6a057167e4eafaf8b7b565a984b48405 (patch) | |
tree | e468838d6cc734f06df941feea2d23fc2ebcaa3e /yt_dlp/YoutubeDL.py | |
parent | 5bc4a65eea5c59ecddb71499915934190fca7d5c (diff) |
[lazy_extractor] Create instance only after pre-checking archive
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 17aa63487..5d40eb333 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1179,7 +1179,7 @@ class YoutubeDL(object): ie_key = 'Generic' if ie_key: - ies = [self.get_info_extractor(ie_key)] + ies = [get_info_extractor(ie_key)] else: ies = self._ies @@ -1188,7 +1188,6 @@ class YoutubeDL(object): continue ie_key = ie.ie_key() - ie = self.get_info_extractor(ie_key) if not ie.working(): self.report_warning('The program functionality for this site has been marked as broken, ' 'and will probably not work.') @@ -1198,7 +1197,8 @@ class YoutubeDL(object): self.to_screen("[%s] %s: has already been recorded in archive" % ( ie_key, temp_id)) break - return self.__extract_info(url, ie, download, extra_info, process) + return self.__extract_info(url, self.get_info_extractor(ie.ie_key()), + download, extra_info, process) else: self.report_error('no suitable InfoExtractor for URL %s' % url) |