diff options
author | garret <garret@airmail.cc> | 2023-07-12 16:14:11 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-07-12 16:28:41 +0100 |
commit | a1fdd3454d2a907db751cecf00ca01b7d7e50914 (patch) | |
tree | 6bdaaa3c4e8f8d55dd0499c914caed561fd600c7 /walker.py | |
parent | 675f1dd7fd6e541e8b976bb5db2ce65dff2de2a7 (diff) | |
download | comicwalker-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.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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()
|