Androz2091 / discord-data-package-explorer

๐ŸŒ€โ€€What's really in your Discord Data package?
https://ddpe.androz2091.fr
GNU General Public License v3.0
822 stars 77 forks source link

๐Ÿ”’๏ธ Improve package validation #31

Closed luisfelipesdn12 closed 3 years ago

luisfelipesdn12 commented 3 years ago

What was happening

Before, the app assumes the package is valid if there is a README.txt file in it. But, for instance, if the whole account folder were deleted, the app would still thinking it is a valid package and don't show the error: "Your package seems to be corrupted. Click or drop your package file here to retry".

Also, it would end by throwing an error like: "TypeError: Cannot read property 'id' of null"

What was done

Now, in order to handle a package as valid, the app tests if all the required files are there.

That makes random errors much more difficult to happen, and shows "Your package seems to be corrupted. Click or drop your package file here to retry".

By the way, it should fix #22-like issues.