-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I've come upon a pretty annoying edge-case where a torrent contains two archives.
The first archive is an archive with the subtitles and a nested archive within itself.
The second archive is an archive of the movie.
Because unrar is run with -o+ the movie archive gets overwritten resulting in the movie being lost.
Best illustrated like this:
- ubuntu-subs.rar
- ubuntu.srt
- ubuntu.rar
- ubuntu.rar
- ubuntu.mkv
- ubuntu.r00
- ubuntu.r01
...
The big question is why would someone do it like this and i don't really have an answer to that but it has happened to me enough times to be a problem.
One way to resolve this would be to run unrar with the -or flag which renames files that would otherwise overwrite another file. In the above example ubuntu.rar would become ubuntu (1).rar
As for the other commands i haven't really looked into alternatives to rename instead of overwrite.