Closed ArjixWasTaken closed 3 years ago
i did test it, but i can never be 100% sure so go wild testing
too bad that more and more providers depend on nodejs...
maybe we should write our own unpacker for p,a,c,k,e,d
js
found this beauty: https://github.com/beautify-web/js-beautify/blob/main/python/jsbeautifier/unpackers/packer.py will do some tests on it
aight, now 4anime doesnt use nodejs at all
the unpacker can be used like this:
from anime_downloader.sites import helpers
result = helpers.deobfuscate_packed_js(packed_js_string)
changed it to import the unpackers instead of just copy pasting their code in anime dl
this pr once again works
Ok, so I finished testing. The unpacker returns its own input if jsbeautifier is not installed. That way, it has the same result as if it was not there at all.
needs testing