aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorLesmiscore <nao20010128@gmail.com>2022-06-30 21:59:39 +0900
committerLesmiscore <nao20010128@gmail.com>2022-06-30 21:59:39 +0900
commit44f14eb43e1601342955bbb4f34cee523cb8a874 (patch)
tree8624dfb59ae69e1fef978b507d64354c94a47f6f /yt_dlp/utils.py
parentca9f1df25346816baacb13e875f3873c47be86e2 (diff)
downloadhypervideo-pre-44f14eb43e1601342955bbb4f34cee523cb8a874.tar.lz
hypervideo-pre-44f14eb43e1601342955bbb4f34cee523cb8a874.tar.xz
hypervideo-pre-44f14eb43e1601342955bbb4f34cee523cb8a874.zip
Fix bug in 612f2be5d3924540158dfbe5f25d841f04cff8c6
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 32c41a169..7b4d2d818 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