Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Par-renamer and par-files with obfuscated base names #313

Closed
2 tasks done
hugbug opened this issue Dec 4, 2016 · 0 comments
Closed
2 tasks done

Par-renamer and par-files with obfuscated base names #313

hugbug opened this issue Dec 4, 2016 · 0 comments
Milestone

Comments

@hugbug
Copy link
Member

hugbug commented Dec 4, 2016

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:

  • avoid false detection of missing files;
  • rename par-files (even those having par-extension) to build correct par-sets.

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.

@hugbug hugbug added this to the v18 milestone Dec 4, 2016
hugbug added a commit that referenced this issue Dec 4, 2016
Avoid false detection of missing files.
@hugbug hugbug closed this as completed Dec 6, 2016
hugbug added a commit that referenced this issue Oct 9, 2017
Avoid false detection of missing files.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant