Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script doesnt check hash value anymore #95

Closed
afterdelight opened this issue Apr 29, 2022 · 45 comments
Closed

script doesnt check hash value anymore #95

afterdelight opened this issue Apr 29, 2022 · 45 comments

Comments

@afterdelight
Copy link

Description

script doesnt check hash value anymore unlike previous version

Additional comments

Please add the feature back, so it can check for corrupt downloads. ty

@AlphaSlayer1964
Copy link
Owner

Yes it does. That feature was never removed.

@afterdelight
Copy link
Author

i renamed .part download file to .zip while it only downloaded 10%. the next time i launched the script it skipped and said as already downloaded while the file in fact is corrupted.

@AlphaSlayer1964
Copy link
Owner

AlphaSlayer1964 commented Apr 29, 2022

It removes the .part when the file is done and has the correct hash. If you change it manually it assumes it downloaded it correct already.

@afterdelight
Copy link
Author

afterdelight commented Apr 29, 2022

i exchanged and renamed the .part file with other .part file and it resumed download without checking the hash file . it will be corrupted when it completed. pls fix it.

@AlphaSlayer1964
Copy link
Owner

Why are you doing that?

@afterdelight
Copy link
Author

afterdelight commented Apr 29, 2022

because i want to check the script if it checking the hash or not?

@afterdelight
Copy link
Author

afterdelight commented Apr 29, 2022

i want to skip large psd file so I rename big psd .part file to .zip and then i realized it didnt check for hashes

@AlphaSlayer1964
Copy link
Owner

You can look at the code in the download function it checks the file hash when it is "completed" and removes the .part from the file name.

@afterdelight
Copy link
Author

but it doesnt check hash when it resume download?

@AlphaSlayer1964
Copy link
Owner

Yes it does

@afterdelight
Copy link
Author

uhh no it didnt i swapped the names with other file and it resume the download normally without error log

@AlphaSlayer1964
Copy link
Owner

I just tried your scenario and it says the file hash was incorrect.

@AlphaSlayer1964
Copy link
Owner

Please post logs

@afterdelight
Copy link
Author

image

@afterdelight
Copy link
Author

image

@AlphaSlayer1964
Copy link
Owner

These images do not show me anything.

@afterdelight
Copy link
Author

real downlaoded part file 1,7 gb, fake replaced file 370mb. then when i resume it resume from 400mb which is from 370mb file. as you can see it didnt show error log

@AlphaSlayer1964
Copy link
Owner

Do you want it to check the hash before it resumes?

@afterdelight
Copy link
Author

image

@afterdelight
Copy link
Author

that was the real file it increased from 370mb to 540 mb after resume

@afterdelight
Copy link
Author

yes, make it check hash file before it resume

@AlphaSlayer1964
Copy link
Owner

These images are not the debug.log

@AlphaSlayer1964
Copy link
Owner

yes, make it check hash file before it resume

What hash am I comparing it to then? The server only gives me a completed files hash.

@afterdelight
Copy link
Author

then u lied about it checking hash before resume download wtf

@AlphaSlayer1964
Copy link
Owner

AlphaSlayer1964 commented Apr 29, 2022

then u lied about it checking hash before resume download wtf

I never said that. When you said this:

but it doesnt check hash when it resume download?

I said yes because it checks when done. Why would I think before the resume starts? Thats not possible. The hash would always be wrong when trying to resume.

@afterdelight
Copy link
Author

but when it trying to resume i didnt get haash error as the picture above

@AlphaSlayer1964
Copy link
Owner

When it has "completed" it will tell you if the hash is wrong.

@AlphaSlayer1964
Copy link
Owner

I can not do any more unless you post a debug.log file.

@afterdelight
Copy link
Author

pls add skip word filter instead so i can skip big psd files

@afterdelight
Copy link
Author

i dont have a debug log

@AlphaSlayer1964
Copy link
Owner

use --verbose

@AlphaSlayer1964
Copy link
Owner

pls add skip word filter instead so i can skip big psd files

Make a pull request

@afterdelight
Copy link
Author

i dont know how to code sory

@afterdelight
Copy link
Author

afterdelight commented Apr 29, 2022

now it shows verbose log:

INFO:Downloading: [20220427] [FVBAH] [2] Tier 3 (PAGES HERE) .zip
DEBUG:Downloading from: https://kemono.party/data/44/f7/44f72820340a976ae166d91c973921bf993eba19b6829b1eb6e8efcf62583d22.zip?f=Tier 3 (PAGES HERE) .zip
DEBUG:Downloading to: kemono.party\gumroad\Aroma Sensei [4487698848613]\Pack 47 November 2021[20220427] [FVBAH] [2] Tier 3 (PAGES HERE) .zip.part
INFO:Trying to resuming partial download | Resume size: 539321792 bytes
WARNING:Failed to download: [20220427] [FVBAH] [2] Tier 3 (PAGES HERE) .zip | 416 Range Not Satisfiable | Assuming broken server hash value
ERROR:Incorrect amount of bytes downloaded | Something went so wrong I have no idea what happened

@AlphaSlayer1964
Copy link
Owner

I wouldn't use the main but stick to the releases.

@afterdelight
Copy link
Author

wdym by that

@AlphaSlayer1964
Copy link
Owner

how did you download the downloader? from releases?

@afterdelight
Copy link
Author

@afterdelight
Copy link
Author

so i can get the latest release

@AlphaSlayer1964
Copy link
Owner

Use the latest release from releases not main. I can not grantee everything works in main. But either way the file would have never been marked as completed and had the .part removed.

@afterdelight
Copy link
Author

i have a corrupted completed downloaded file before from old release. maybe its corrupted from the server, dunno havent checked it yet

@AlphaSlayer1964
Copy link
Owner

Annoyingly some of the hashes on kemonos website are wrong so it could be correct but the hash on the server is wrong.

@afterdelight
Copy link
Author

no it was the .rar file is corrupted when i opened it not wrong hash file. it was completed already an the .part file has been removed

@AlphaSlayer1964
Copy link
Owner

send link to post

@afterdelight
Copy link
Author

i forgot already, too many files. it was kidmo on gumroad. a few gb file size. but i forgot which file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants