Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Par-renamer and par-files with obfuscated base names #313
Par-renamer automatically restores original names for obfuscated files using par-files. If download doesn't have files with par-extensions the renamer checks content of all files detecting renamed par-files and then restores par-extensions. When doing so it also correctly group par-files into par-sets giving them the same base name.
There is one special case which par-renamer doesn't handle at the moment. If download contains par-files with par-extensions but with changed (obfuscated) different base names the renamer doesn't rename those files. Moreover such par-files are processed as separate par-sets (they have different base names and look as different par-sets).
That causes par-renamer to falsely detect missing files and initiate par-check to repair download. The par-check then has its own problems with renamed par-files. It finds different par-sets and processes each par-set separately. As a result the download is par-checked multiple times.
Thanks to quick par-verification the par-check usually takes not so long but the par-renamer can be improved nonetheless in two ways:
As a result of this improvement the downloads having obfuscated par-files will not be par-checked if no errors occurred and if repair is needed the par-check will be performed only once.