pyload
pyload copied to clipboard
New extract archives from package Button
Feature description
Hi, i am requesting a new gui button to extract all archives from downlaoded package/directory.
It could be added to this Buttons.
Problem description
It happens that one archives is currupted and the extract fails. It will not run a second time after the corrupted archive got replaced/re-downloaded. I would like to have an option to restart the extracttion für this package.
Additional references
Same goes for the package_finished event. it does not fire again when reloading a corrupted archive.
I struggled with this a lot. I invested many days, because I am a newbie with bash. Also there was a switch from unrar to 7z which broke my initial script. I hope it spares your time and helps you guys untill this feature is in place:
/usr/bin/docker exec pyload-ng find /downloads \( -type f -regex '.*.part\(1\|01\).rar' -or \( -name '*.rar' -and \! -name '*part*' \) \) -exec sh -c '7z x "{}" -p -o"$(dirname "{}")/"' \;