arfoll / unrarall

bash script to unrar everything and cleanup in a given directory
GNU General Public License v3.0
261 stars 68 forks source link

[Feature] Unpack to temporary folder #9

Closed omle closed 9 years ago

omle commented 11 years ago

Hi! I find your unrarall script potentialy very usefull, however it would be great to be able to force script to unpack files to temporary folder before placing it back in original path.

This would prevent additional software (SickBeard/CouchPotato in my case) from processing those files before they're completely unpacked.

Could you please implement one more option to command line so the script would:

  1. find all rar files in (sub)dir (as it does)
  2. Unrar it to temporary path
  3. Move unrared file back to original location of archives
  4. Make the cleanup (as it does)

?

Thanks in advance and thanks for what already have been done.

arfoll commented 11 years ago

Hi, thanks for getting in touch :)

I don't really understand the issue, Why is it a problem that sickbeard/coupotato processes half written files? If you're worried because sickbeard is renaming your files whilst extracting then don't be because the inode will not change so the extraction should not be an issue. The cleanup at the end however may be, but sickbeard will probably be in charge of cleanup via making a clean nfo, leaving unrarall to clean up the rar + mess.

Also cleanup wise this solution is 'easy' but will not clean up .nfo/covers/samples/etc... that are often found in the split rar. (well i guess a second cleanup could be done but...)

omle commented 11 years ago

Hmmm, i'll double check, though i thought sickbeard moved partialy unrared file to it's final destination. (200MB though it was supposed to have c.a. 1,5GB). But it might have been false alarm ;-) I'll check again and if not - get back in touch.

Thanks!

arfoll commented 9 years ago

closing as lack of update