aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--walker.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/walker.py b/walker.py
index 7e49f91..9c626fa 100644
--- a/walker.py
+++ b/walker.py
@@ -61,15 +61,15 @@ def undrm(url, headers, cid_info):
with open(f'{save_path}/{pagination}', 'wb') as f:
f.write(xor(enc, key))
-
+
logging.info('Done.')
def xor(bin, key):
retval = []
-
+
for i in range(len(bin)):
retval.append(bin[i] ^ key[i % len(key)])
-
+
return bytes(retval)
def main():
@@ -92,8 +92,8 @@ def main():
}
content_url = f'https://comicwalker-api.nicomanga.jp/api/v1/comicwalker/episodes/{args.cid}'
-
+
start(content_url, headers)
if __name__ == "__main__":
- main() \ No newline at end of file
+ main()