Singlefile is encoded, not readability.

This commit is contained in:
Roland 2021-11-10 11:03:05 -07:00
parent 90d3b8ca65
commit c921fdc33c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -101,13 +101,13 @@ def request_archive(url: str):
if not singlefile:
logger.info(f'Failed to get singlefile for {url=}')
else:
# Decode and decompress.
singlefile = base64.b64decode(singlefile)
singlefile = gzip.decompress(singlefile)
if not readability:
logger.info(f'Failed to get readability for {url=}')
else:
# Decode and decompress.
readability = base64.b64decode(readability)
readability = gzip.decompress(readability)
if not screenshot:
logger.info(f'Failed to get screenshot for {url=}')