aboutsummaryrefslogtreecommitdiffstats
path: root/walker.py
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-07-12 16:09:56 +0100
committergarret <garret@airmail.cc>2023-07-12 16:28:41 +0100
commit535bad2e89afeda12f5a353fbbbd0862f2bbfa19 (patch)
tree636fc3bf8430427a9a75af82d2def255dd7d2e39 /walker.py
parent61851de7e9d05e972bd70a9890caa189b2469549 (diff)
downloadcomicwalker-dl-535bad2e89afeda12f5a353fbbbd0862f2bbfa19.tar.gz
comicwalker-dl-535bad2e89afeda12f5a353fbbbd0862f2bbfa19.tar.bz2
comicwalker-dl-535bad2e89afeda12f5a353fbbbd0862f2bbfa19.zip
make paths work on linux
Diffstat (limited to 'walker.py')
-rw-r--r--walker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/walker.py b/walker.py
index 9ae6176..94d4786 100644
--- a/walker.py
+++ b/walker.py
@@ -44,7 +44,7 @@ def undrm(url, headers, cid_info):
print('Page count: {}\n'.format(len(meta['data']['result'])))
- save_path = os.path.join('downloaded_chapters\\{}\\{}'.format(cid_info['TITLE'], cid_info['CHAPTER']))
+ save_path = os.path.join('downloaded_chapters/{}/{}'.format(cid_info['TITLE'], cid_info['CHAPTER']))
if not os.path.exists(save_path):
os.makedirs(save_path)
@@ -63,7 +63,7 @@ def undrm(url, headers, cid_info):
enc = requests.get(meta['data']['result'][page-1]['meta']['source_url'], headers=headers).content
pagination = str(page) + '.webp'
- with open(f'{save_path}\\{pagination}', 'wb') as f:
+ with open(f'{save_path}/{pagination}', 'wb') as f:
f.write(xor(enc, key))
logging.info('Done.')