aboutsummaryrefslogtreecommitdiffstats
path: root/walker.py
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-07-12 16:14:11 +0100
committergarret <garret@airmail.cc>2023-07-12 16:28:41 +0100
commita1fdd3454d2a907db751cecf00ca01b7d7e50914 (patch)
tree6bdaaa3c4e8f8d55dd0499c914caed561fd600c7 /walker.py
parent675f1dd7fd6e541e8b976bb5db2ce65dff2de2a7 (diff)
downloadcomicwalker-dl-a1fdd3454d2a907db751cecf00ca01b7d7e50914.tar.gz
comicwalker-dl-a1fdd3454d2a907db751cecf00ca01b7d7e50914.tar.bz2
comicwalker-dl-a1fdd3454d2a907db751cecf00ca01b7d7e50914.zip
whitespace
remove trailing whitespace, add newline at end (automatic changes by my text editor)
Diffstat (limited to 'walker.py')
-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()