From 71ddc222adca21f471051e922d2c2f08a27b2d44 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sat, 21 Nov 2020 10:00:05 -0500 Subject: Fix typos (#27084) * spelling: authorization Signed-off-by: Josh Soref * spelling: brightcove Signed-off-by: Josh Soref * spelling: creation Signed-off-by: Josh Soref * spelling: exceeded Signed-off-by: Josh Soref * spelling: exception Signed-off-by: Josh Soref * spelling: extension Signed-off-by: Josh Soref * spelling: extracting Signed-off-by: Josh Soref * spelling: extraction Signed-off-by: Josh Soref * spelling: frontline Signed-off-by: Josh Soref * spelling: improve Signed-off-by: Josh Soref * spelling: length Signed-off-by: Josh Soref * spelling: listsubtitles Signed-off-by: Josh Soref * spelling: multimedia Signed-off-by: Josh Soref * spelling: obfuscated Signed-off-by: Josh Soref * spelling: partitioning Signed-off-by: Josh Soref * spelling: playlist Signed-off-by: Josh Soref * spelling: playlists Signed-off-by: Josh Soref * spelling: restriction Signed-off-by: Josh Soref * spelling: services Signed-off-by: Josh Soref * spelling: split Signed-off-by: Josh Soref * spelling: srmediathek Signed-off-by: Josh Soref * spelling: support Signed-off-by: Josh Soref * spelling: thumbnail Signed-off-by: Josh Soref * spelling: verification Signed-off-by: Josh Soref * spelling: whitespaces Signed-off-by: Josh Soref --- youtube_dl/utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'youtube_dl/utils.py') diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 321f903ab..8cefafd79 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2458,7 +2458,7 @@ class XAttrMetadataError(YoutubeDLError): # Parsing code and msg if (self.code in (errno.ENOSPC, errno.EDQUOT) - or 'No space left' in self.msg or 'Disk quota excedded' in self.msg): + or 'No space left' in self.msg or 'Disk quota exceeded' in self.msg): self.reason = 'NO_SPACE' elif self.code == errno.E2BIG or 'Argument list too long' in self.msg: self.reason = 'VALUE_TOO_LONG' @@ -4207,10 +4207,10 @@ def parse_codecs(codecs_str): # http://tools.ietf.org/html/rfc6381 if not codecs_str: return {} - splited_codecs = list(filter(None, map( + split_codecs = list(filter(None, map( lambda str: str.strip(), codecs_str.strip().strip(',').split(',')))) vcodec, acodec = None, None - for full_codec in splited_codecs: + for full_codec in split_codecs: codec = full_codec.split('.')[0] if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v', 'hvc1', 'av01', 'theora'): if not vcodec: @@ -4221,10 +4221,10 @@ def parse_codecs(codecs_str): else: write_string('WARNING: Unknown codec %s\n' % full_codec, sys.stderr) if not vcodec and not acodec: - if len(splited_codecs) == 2: + if len(split_codecs) == 2: return { - 'vcodec': splited_codecs[0], - 'acodec': splited_codecs[1], + 'vcodec': split_codecs[0], + 'acodec': split_codecs[1], } else: return { @@ -5463,7 +5463,7 @@ def encode_base_n(num, n, table=None): def decode_packed_codes(code): mobj = re.search(PACKED_CODES_RE, code) - obfucasted_code, base, count, symbols = mobj.groups() + obfuscated_code, base, count, symbols = mobj.groups() base = int(base) count = int(count) symbols = symbols.split('|') @@ -5476,7 +5476,7 @@ def decode_packed_codes(code): return re.sub( r'\b(\w+)\b', lambda mobj: symbol_table[mobj.group(0)], - obfucasted_code) + obfuscated_code) def caesar(s, alphabet, shift): -- cgit v1.2.3