diff options
author | pukkandan <pukkandan@gmail.com> | 2020-11-21 20:20:42 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2020-11-22 03:51:26 +0530 |
commit | a0566bbf5c3dea282447efb2926d71bafe1b7720 (patch) | |
tree | 8e4954cbeacb8d8ebcd144faa7fdea7375935d48 /youtube_dlc/extractor/xiami.py | |
parent | 3462ffa8929d2a40588669578ca912d57a0da1bb (diff) | |
download | hypervideo-pre-a0566bbf5c3dea282447efb2926d71bafe1b7720.tar.lz hypervideo-pre-a0566bbf5c3dea282447efb2926d71bafe1b7720.tar.xz hypervideo-pre-a0566bbf5c3dea282447efb2926d71bafe1b7720.zip |
Updated to release 2020.11.21.1
Diffstat (limited to 'youtube_dlc/extractor/xiami.py')
-rw-r--r-- | youtube_dlc/extractor/xiami.py | 8 |
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] |