aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-18 23:50:59 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-19 16:48:20 +0530
commit07cce701de0ad07a60203d86879c6c737f936a18 (patch)
tree19fa341ceab7a62e9ee602191b80ac393aba1b3f /yt_dlp/extractor/common.py
parent74e001af1dd18bed90caadbf6e25461aecb9ec15 (diff)
downloadhypervideo-pre-07cce701de0ad07a60203d86879c6c737f936a18.tar.lz
hypervideo-pre-07cce701de0ad07a60203d86879c6c737f936a18.tar.xz
hypervideo-pre-07cce701de0ad07a60203d86879c6c737f936a18.zip
[cleanup] linter, code formatting and readme
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 42824182f..3b2bda0e7 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -554,6 +554,8 @@ class InfoExtractor(object):
self.initialize()
self.write_debug('Extracting URL: %s' % url)
ie_result = self._real_extract(url)
+ if ie_result is None:
+ return None
if self._x_forwarded_for_ip:
ie_result['__x_forwarded_for_ip'] = self._x_forwarded_for_ip
subtitles = ie_result.get('subtitles')