Skip to content

Commit

Permalink
fix: get bigger chunk to find beginning of the archive
Browse files Browse the repository at this point in the history
  • Loading branch information
imLinguin committed Mar 17, 2024
1 parent 7a2d28e commit c0b9960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gogdl/dl/objects/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def __init__(self, url, product_id, session):
self.session = session
self.file_size = 0
beginning_of_file = self.get_bytes_from_file(
from_b=1024*512, size=1024*512, add_archive_index=False
from_b=1024*512, size=1024*1024, add_archive_index=False
)

self.start_of_archive_index = beginning_of_file.find(LOCAL_FILE_HEADER) + 1024*512
Expand Down

0 comments on commit c0b9960

Please sign in to comment.