aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/YoutubeDL.py4
-rw-r--r--yt_dlp/extractor/common.py4
-rw-r--r--yt_dlp/extractor/youtube.py1
-rw-r--r--yt_dlp/options.py2
4 files changed, 5 insertions, 6 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 72e6059ea..d1b6b2056 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2591,7 +2591,7 @@ class YoutubeDL(object):
def actual_post_extract(info_dict):
if info_dict.get('_type') in ('playlist', 'multi_video'):
for video_dict in info_dict.get('entries', {}):
- actual_post_extract(video_dict)
+ actual_post_extract(video_dict or {})
return
if '__post_extractor' not in info_dict:
@@ -2602,7 +2602,7 @@ class YoutubeDL(object):
del info_dict['__post_extractor']
return
- actual_post_extract(info_dict)
+ actual_post_extract(info_dict or {})
def pre_process(self, ie_info):
info = dict(ie_info)
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 4205a3f8c..60db92204 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -1398,7 +1398,7 @@ class InfoExtractor(object):
return self._hidden_inputs(form)
class FormatSort:
- regex = r' *((?P<reverse>\+)?(?P<field>[a-zA-Z0-9_]+)((?P<seperator>[~:])(?P<limit>.*?))?)? *$'
+ regex = r' *((?P<reverse>\+)?(?P<field>[a-zA-Z0-9_]+)((?P<separator>[~:])(?P<limit>.*?))?)? *$'
default = ('hidden', 'hasvid', 'ie_pref', 'lang', 'quality',
'res', 'fps', 'codec:vp9.2', 'size', 'br', 'asr',
@@ -1558,7 +1558,7 @@ class InfoExtractor(object):
if self._get_field_setting(field, 'type') == 'alias':
field = self._get_field_setting(field, 'field')
reverse = match.group('reverse') is not None
- closest = match.group('seperator') == '~'
+ closest = match.group('separator') == '~'
limit_text = match.group('limit')
has_limit = limit_text is not None
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index e2f504ed9..794f51bb6 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -15,7 +15,6 @@ from .common import InfoExtractor, SearchInfoExtractor
from ..compat import (
compat_chr,
compat_HTTPError,
- compat_kwargs,
compat_parse_qs,
compat_str,
compat_urllib_parse_unquote_plus,
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 95ef27e26..2047ac28e 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1148,7 +1148,7 @@ def parseOpts(overrideArguments=None):
help=(
'Parse additional metadata like title/artist from other fields. '
'Give a template or field name to extract data from and the '
- 'format to interpret it as, seperated by a ":". '
+ 'format to interpret it as, separated by a ":". '
'Either regular expression with named capture groups or a '
'similar syntax to the output template can be used for the FORMAT. '
'Similarly, the syntax for output template can be used for FIELD '