-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
[kemono.party]Corrupted PNGs when downloading using version 1.24.3 #3519
Comments
473bd38 seems to be at fault, I have a build of the commit prior to it and it works fine. |
gallery-dl/gallery_dl/extractor/kemonoparty.py Lines 202 to 203 in 473bd38
This "and" should have been an "or" and almost all bugs this is causing now would have been avoided. Accessing
I ran all extractor result tests and even added a new one. They all passed so I thought it was OK like this. Oh well. Sorry. Guess I'll be pushing another release this evening. |
Fixed in commit 85bd1cb. |
What's the safe way to fix the issues with broken files if I use archive (don't wan to re-download something I removed earlier)? I can't just wipe latest data inside the .sqlite3 file? |
Yes, you can quite easily actually: https://sqlitebrowser.org/ |
I mean there is no column for date. How do I sort by date, or select entries created on specific date and remove them? |
Uhh.. not sure. |
They are identical for each individual binary file (and not just PNG) only. I found them all by creation date, but I'll need to make some script that would properly find such duped bytes and remove them. |
Well, if you also save the ID inside the filename, and not just in |
Yes, there are ~4000 files with ids in their names. I guess I could list, find them inside the .sqlite3 and remove. But that seems like too much work compared to a script. |
If you can identify all the bad files, say with for f in ./*.png; do dd if="$f" of="$f"_fixed.png ibs=16 skip=1; done This will remove the first 16 bytes of all pngs in the folder and output them to filename.png_fixed.png |
Solved the problem using sfk.exe and a batch script:
Usage for each file: |
The pngs downloaded after upgrading to 1.24.3 all seem to be corrupted. I downgraded to previous version and it works fine.
The text was updated successfully, but these errors were encountered: