aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/xiami.py
diff options
context:
space:
mode:
authorTom-Oliver Heidel <github@tom-oliver.eu>2020-11-30 02:46:10 +0100
committerGitHub <noreply@github.com>2020-11-30 02:46:10 +0100
commit9e4043faa99609ac16d279a5f8d5fc22b23f0c8e (patch)
tree2c052847cd85fdf3ac33176a7d0109c79b518c45 /youtube_dlc/extractor/xiami.py
parent5867a1678924ad25a4784abfa5dbd28b5b69eb67 (diff)
parent94c29091d049f48962c3e81a1b5b0237ab54827d (diff)
downloadhypervideo-pre-9e4043faa99609ac16d279a5f8d5fc22b23f0c8e.tar.lz
hypervideo-pre-9e4043faa99609ac16d279a5f8d5fc22b23f0c8e.tar.xz
hypervideo-pre-9e4043faa99609ac16d279a5f8d5fc22b23f0c8e.zip
Merge branch 'master' into rcs
Diffstat (limited to 'youtube_dlc/extractor/xiami.py')
-rw-r--r--youtube_dlc/extractor/xiami.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dlc/extractor/xiami.py b/youtube_dlc/extractor/xiami.py
index 618da8382..769aab331 100644
--- a/youtube_dlc/extractor/xiami.py
+++ b/youtube_dlc/extractor/xiami.py
@@ -54,17 +54,17 @@ class XiamiBaseIE(InfoExtractor):
def _decrypt(origin):
n = int(origin[0])
origin = origin[1:]
- short_lenth = len(origin) // n
- long_num = len(origin) - short_lenth * n
+ short_length = len(origin) // n
+ long_num = len(origin) - short_length * n
l = tuple()
for i in range(0, n):
- length = short_lenth
+ length = short_length
if i < long_num:
length += 1
l += (origin[0:length], )
origin = origin[length:]
ans = ''
- for i in range(0, short_lenth + 1):
+ for i in range(0, short_length + 1):
for j in range(0, n):
if len(l[j]) > i:
ans += l[j][i]