Skip to content

A feature-rich command-line audio/video downloader

Fix bug in 612f2be5d3924540158dfbe5f25d841f04cff8c6

Lesmiscore44f14eb43e16
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 32c41a1698..7b4d2d818c 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -4755,7 +4755,7 @@ def _base_n_table(n, table):
raise ValueError('Either table or n must be specified')
table = (table or '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')[:n]
- if n != len(table):
+ if n and n != len(table):
raise ValueError(f'base {n} exceeds table length {len(table)}')
return table