Sonarr version : v3
Currently I use a script in my download client to automatically unrar releases that have RARs.
Sonarr successfully detects these files, and hardlinks them appropriately, but the size doesn’t update to what it actually is, even after a full extraction.
Don’t unrar in place, unrar to another location then move them back into that folder, especially important for multi-file releases.
No need to move the rars, Sonarr will ignore them.
Download all rars
Extract rars to a different folder
Move extracted files back
Just a remark, the move should be instant. So preferrably extract to another folder on the same volume, then move back from there.
So would this script work, if $1
= the torrent folder (i.e. /home/pika/hoard/torrents/TV Shows/my show.GROUP
)?
#!/bin/bash
mkdir /home/pika/hoard/tmp
cd /home/pika/hoard/tmp
find "$1" -name "*.rar" -exec unrar e -o- "{}" \;
mv /home/pika/hoard/tmp/* "$1"
rm -rf /home/pika/hoard/tmp
system
Closed
September 16, 2019, 10:37pm
7
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.